Don't run apex_available check for coverage builds am: 58d1090032

Change-Id: I980be3cb2fe40043e0a5fcb6d4c70c3793ef032f
This commit is contained in:
Jiyong Park
2020-03-30 05:42:18 +00:00
committed by Automerger Merge Worker

View File

@@ -2023,6 +2023,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)