Don't run apex_available check for coverage builds am: 58d1090032 am: 774baea1fc am: a0b7fdee67 am: bbf10c4486

Change-Id: I6e7361787a90474aaf7489dbfe423caf096c48d0
This commit is contained in:
Jiyong Park
2020-03-30 06:25:38 +00:00
committed by Automerger Merge Worker

View File

@@ -2028,6 +2028,13 @@ func (a *apexBundle) checkApexAvailability(ctx android.ModuleContext) {
return
}
// Coverage build adds additional dependencies for the coverage-only runtime libraries.
// Requiring them and their transitive depencies with apex_available is not right
// because they just add noise.
if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT") || a.IsNativeCoverageNeeded(ctx) {
return
}
a.walkPayloadDeps(ctx, func(ctx android.ModuleContext, from blueprint.Module, to android.ApexModule, externalDep bool) {
apexName := ctx.ModuleName()
fromName := ctx.OtherModuleName(from)