diff options
author | 2024-12-10 17:06:24 +0000 | |
---|---|---|
committer | 2024-12-10 17:06:24 +0000 | |
commit | 5b6fa150ecd162d12805ec3d91ac3d086d0feaed (patch) | |
tree | 1706db7d7cfb2f65f34d2117d32c56bb15b9e44d /apex/apex.go | |
parent | 10fce427deabc68fe1c5846d01f7e7e581064fab (diff) | |
parent | d29a1a83c251f570d438487aafe51680e3ece76f (diff) |
Merge changes I0bf0c186,I859cd636,Ie438d7a7,I30f82aea into main am: d29a1a83c2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3393287
Change-Id: I866c8fbec06b9b66c02cbd13f8a33d35b0c5df03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'apex/apex.go')
-rw-r--r-- | apex/apex.go | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/apex/apex.go b/apex/apex.go index 9fdb2a2a5..c6b62b58c 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -966,21 +966,8 @@ func (a *apexBundle) ApexInfoMutator(mctx android.TopDownMutatorContext) { if !ok || !am.CanHaveApexVariants() { return false } - depTag := mctx.OtherModuleDependencyTag(child) - // Check to see if the tag always requires that the child module has an apex variant for every - // apex variant of the parent module. If it does not then it is still possible for something - // else, e.g. the DepIsInSameApex(...) method to decide that a variant is required. - if required, ok := depTag.(android.AlwaysRequireApexVariantTag); ok && required.AlwaysRequireApexVariant() { - return true - } - if !android.IsDepInSameApex(mctx, parent, child) { - return false - } - - // By default, all the transitive dependencies are collected, unless filtered out - // above. - return true + return android.IsDepInSameApex(mctx, parent, child) } android.SetProvider(mctx, android.ApexBundleInfoProvider, android.ApexBundleInfo{}) @@ -2695,7 +2682,7 @@ func (a *apexBundle) checkApexAvailability(ctx android.ModuleContext) { return } - a.WalkPayloadDeps(ctx, func(ctx android.BaseModuleContext, from blueprint.Module, to android.ApexModule, externalDep bool) bool { + a.WalkPayloadDeps(ctx, func(ctx android.BaseModuleContext, from android.Module, to android.ApexModule, externalDep bool) bool { // As soon as the dependency graph crosses the APEX boundary, don't go further. if externalDep { return false |