Skip to contentSkip to conversation

rust-target-config: Fix ABI override for powerpc64le target

PATCH New [email protected] 1 participant 1 message Oct 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rust-target-config: Fix ABI override for powerpc64le target

From: Deepesh Varatharajan <[email protected]>

Ensure the powerpc64le check is exclusive by using elif, preventing the powerpc64 condition from overriding it. This keeps the ABI as elfv2 for PPC64LE and fixes related build failures.

---
 meta/classes-recipe/rust-target-config.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/rust-target-config.bbclass +1 -1
index 0c7e3c0090..9ce57843cf 100644
@@ -405,7 +405,7 @@ def rust_gen_target(d, thing, wd, arch):
         tspec['llvm-abiname'] = "lp64d"
     if "powerpc64le" in tspec['llvm-target']:
         tspec['llvm-abiname'] = "elfv2"
-    if "powerpc64" in tspec['llvm-target']:
+    elif "powerpc64" in tspec['llvm-target']:
         tspec['llvm-abiname'] = "elfv1"
     tspec['vendor'] = "unknown"
     tspec['target-family'] = "unix"
Signature · 1 line
2.49.0