Enable coverage for vendor-related libraries

Bug: http://b/116873221

Enable coverage for libraries that use VNDK and those that have vendor
variants.  This previously caused a redefinition error in the
Android-<product>.mk but was indirectly fixed when
https://android-review.googlesource.com/c/platform/build/soong/+/906394
disabled coverage for LLNDK stub libraries.

Test: m NATIVE_COVERAGE=true COVERAGE_PATHS=frameworks nothing
Change-Id: Iccbc1c15c68562449ffffe7bbcc3d22419d84bfe
This commit is contained in:
Pirama Arumuga Nainar 2019-02-15 15:24:47 -08:00
parent 4e3c60128f
commit 2f289aca6e
1 changed files with 0 additions and 2 deletions

View File

@ -109,8 +109,6 @@ func coverageMutator(mctx android.BottomUpMutatorContext) {
if mctx.Host() {
// TODO(dwillemsen): because of -nodefaultlibs, we must depend on libclang_rt.profile-*.a
// Just turn off for now.
} else if c.useVndk() || c.hasVendorVariant() {
// Do not enable coverage for VNDK libraries
} else if c.IsStubs() {
// Do not enable coverage for platform stub libraries
} else if c.isNDKStubLibrary() {