Don't run apex_available check for coverage builds am: 58d1090032
am: 774baea1fc
Change-Id: I429a4e7edea72cdbb160d120ce85d921c185e9d7
This commit is contained in:
commit
a0b7fdee67
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue