Merge "Required deps don't track native bridge architectures" into main

This commit is contained in:
Jiyong Park 2024-05-29 03:59:58 +00:00 committed by Gerrit Code Review
commit a03e16f1b9

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)