Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c2e6d50 authored by Paul Duffin's avatar Paul Duffin Committed by Gerrit Code Review
Browse files

Merge "Avoid calling DepIsInSameApex when excluded from apex contents"

parents 38cf70a0 e9612824
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
	// not available to platform even if it has "//apex_available:platform"
	mctx.VisitDirectDeps(func(child android.Module) {
		depTag := mctx.OtherModuleDependencyTag(child)
		if _, ok := depTag.(android.ExcludeFromApexContentsTag); ok {
			return
		}
		if !am.DepIsInSameApex(mctx, child) {
			// if the dependency crosses apex boundary, don't consider it
			return