diff options
author | 2024-10-25 21:37:01 +0000 | |
---|---|---|
committer | 2024-10-25 21:37:01 +0000 | |
commit | 99eae48c4e04ac95eb3764ce99b7c290ce5abb99 (patch) | |
tree | 42d698aa5a97d1f8864ef525eb19a8757d587aa8 /android/path_properties.go | |
parent | 69464c3d3f5616b635c7ead3c66a53763cabd72a (diff) | |
parent | b304ea9b3208302c26b4db717ee6e62ede5ee31c (diff) |
Merge "Handle IgnorePrefer32OnDevice() in first_prefer32 path properties" into main
Diffstat (limited to 'android/path_properties.go')
-rw-r--r-- | android/path_properties.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/android/path_properties.go b/android/path_properties.go index a79b5a2cf..f3c62ea43 100644 --- a/android/path_properties.go +++ b/android/path_properties.go @@ -92,13 +92,18 @@ func addPathDepsForProps(ctx BottomUpMutatorContext, props []interface{}) { // properties tagged path_device_first_prefer32 get the first 32 bit target if one is available, // otherwise they use the first 64 bit target if len(pathDeviceFirstPrefer32Properties) > 0 { - firstPrefer32Target := FirstTarget(ctx.Config().Targets[Android], "lib32", "lib64") - if len(firstPrefer32Target) == 0 { + var targets []Target + if ctx.Config().IgnorePrefer32OnDevice() { + targets, _ = decodeMultilibTargets("first", ctx.Config().Targets[Android], false) + } else { + targets, _ = decodeMultilibTargets("first_prefer32", ctx.Config().Targets[Android], false) + } + if len(targets) == 0 { ctx.ModuleErrorf("Could not find a first_prefer32 target") } else { for _, s := range pathDeviceFirstPrefer32Properties { if m, t := SrcIsModuleWithTag(s); m != "" { - ctx.AddVariationDependencies(firstPrefer32Target[0].Variations(), sourceOrOutputDepTag(m, t), m) + ctx.AddVariationDependencies(targets[0].Variations(), sourceOrOutputDepTag(m, t), m) } } } |