aboutsummaryrefslogtreecommitdiffstats
path: root/cc/coverage.go
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2019-02-15 15:24:47 -0800
committerPirama Arumuga Nainar <pirama@google.com>2019-02-15 15:24:47 -0800
commit2f289aca6eef572119d405de3bbfb14869e3b23e (patch)
tree881bc34566916138f992cb1f267a15cd3b18954a /cc/coverage.go
parent4e3c60128fdd0a01e588165c1b68b6430289fa98 (diff)
downloadandroid_build_soong-2f289aca6eef572119d405de3bbfb14869e3b23e.tar.gz
android_build_soong-2f289aca6eef572119d405de3bbfb14869e3b23e.tar.bz2
android_build_soong-2f289aca6eef572119d405de3bbfb14869e3b23e.zip
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
Diffstat (limited to 'cc/coverage.go')
-rw-r--r--cc/coverage.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/cc/coverage.go b/cc/coverage.go
index cf67c9f0..05497052 100644
--- a/cc/coverage.go
+++ b/cc/coverage.go
@@ -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() {