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

Commit 81138359 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

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