diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2019-02-14 15:38:02 -0800 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2019-02-14 15:39:31 -0800 |
commit | 811383594036a4a54b018e370648074eca9fc6aa (patch) | |
tree | da903dd1cdaa78273de55d92c115689fef955b6b /cc/coverage.go | |
parent | fc46f28b6fbcc947aed9d48292573b585c939270 (diff) | |
download | android_build_soong-811383594036a4a54b018e370648074eca9fc6aa.tar.gz android_build_soong-811383594036a4a54b018e370648074eca9fc6aa.tar.bz2 android_build_soong-811383594036a4a54b018e370648074eca9fc6aa.zip |
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
Diffstat (limited to 'cc/coverage.go')
-rw-r--r-- | cc/coverage.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/coverage.go b/cc/coverage.go index 79f7d7d8..cf67c9f0 100644 --- a/cc/coverage.go +++ b/cc/coverage.go @@ -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 { |