Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f289aca authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

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
parent 4e3c6012
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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() {