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.
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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"