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

Change-Id: I429a4e7edea72cdbb160d120ce85d921c185e9d7
This commit is contained in:
Jiyong Park 2020-03-30 05:59:21 +00:00 committed by Automerger Merge Worker
commit a0b7fdee67
1 changed files with 7 additions and 0 deletions

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)