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

Commit 8db44156 authored by Jiyong Park's avatar Jiyong Park
Browse files

Required deps don't track native bridge architectures

Bug: 342945184
Test: build aosp_cf_x86_64_only_phone and check if
out/target/product/vsoc_x86_64_only/system/lib64/arm64 directory doesn't
exist.

Change-Id: I1638610ac686b369b23390768af1564b3cf38d9b
parent d02bd377
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1076,6 +1076,12 @@ func addRequiredDeps(ctx BottomUpMutatorContext) {
			return
		}

		// ... also don't make a dependency between native bridge arch and non-native bridge
		// arches. b/342945184
		if ctx.Target().NativeBridge != target.NativeBridge {
			return
		}

		variation := target.Variations()
		if ctx.OtherModuleFarDependencyVariantExists(variation, depName) {
			ctx.AddFarVariationDependencies(variation, RequiredDepTag, depName)