Merge "Avoid calling DepIsInSameApex when excluded from apex contents" am: 9c2e6d50b4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1626500 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ief63f1156c7db836343032eb1846a23286b99ea6
This commit is contained in:
commit
46a694ba85
1 changed files with 4 additions and 0 deletions
|
@ -974,6 +974,10 @@ func markPlatformAvailability(mctx android.BottomUpMutatorContext) {
|
||||||
// If any of the dep is not available to platform, this module is also considered as being
|
// If any of the dep is not available to platform, this module is also considered as being
|
||||||
// not available to platform even if it has "//apex_available:platform"
|
// not available to platform even if it has "//apex_available:platform"
|
||||||
mctx.VisitDirectDeps(func(child android.Module) {
|
mctx.VisitDirectDeps(func(child android.Module) {
|
||||||
|
depTag := mctx.OtherModuleDependencyTag(child)
|
||||||
|
if _, ok := depTag.(android.ExcludeFromApexContentsTag); ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
if !am.DepIsInSameApex(mctx, child) {
|
if !am.DepIsInSameApex(mctx, child) {
|
||||||
// if the dependency crosses apex boundary, don't consider it
|
// if the dependency crosses apex boundary, don't consider it
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue