Do not enable coverage for platform/llndk stub libraries

Bug: http://b/116873221

These are used only for linking, and secondly, don't link with libc or
other system libraries.

Test: Build system/core/libnativeloader with coverage
Change-Id: I37eae572a5eaa00f0e8c72bc1453e967b5bcb577
This commit is contained in:
Pirama Arumuga Nainar 2019-02-14 15:38:02 -08:00
parent fc46f28b6f
commit 8113835940

View file

@ -111,6 +111,8 @@ func coverageMutator(mctx android.BottomUpMutatorContext) {
// 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() {
// Do not enable coverage for NDK stub libraries
} else if c.coverage != nil {