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
This commit is contained in:
Jiyong Park 2024-05-28 12:22:04 +09:00
parent d02bd377da
commit 8db4415616

View file

@ -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)