authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-18 12:11:52+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-25 21:54:48+02:00
loga8e624d7f1220da166a61c5eb5956a5569188856
tree2632307fd24ef3cd8f667dfce530dcd1ee896a5c
parentbb7a43490f29cbe98974ba66ebd274bceb694acf
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

compiler: let LLVM set the 64bit feature from the target triple on powerpc targets


2 files changed, 2 insertions(+), 0 deletions(-)

src/Compilation.zig+1
...@@ -6808,6 +6808,7 @@ pub fn addCCArgs(...@@ -6808,6 +6808,7 @@ pub fn addCCArgs(
6808 // We communicate these to Clang through the dedicated options.6808 // We communicate these to Clang through the dedicated options.
6809 if (std.mem.startsWith(u8, llvm_name, "soft-float") or6809 if (std.mem.startsWith(u8, llvm_name, "soft-float") or
6810 std.mem.startsWith(u8, llvm_name, "hard-float") or6810 std.mem.startsWith(u8, llvm_name, "hard-float") or
6811 (target.cpu.arch.isPowerPC() and std.mem.startsWith(u8, llvm_name, "64bit")) or
6811 (target.cpu.arch.isX86() and std.mem.startsWith(u8, llvm_name, "x32")) or6812 (target.cpu.arch.isX86() and std.mem.startsWith(u8, llvm_name, "x32")) or
6812 (target.cpu.arch == .s390x and std.mem.eql(u8, llvm_name, "backchain")))6813 (target.cpu.arch == .s390x and std.mem.eql(u8, llvm_name, "backchain")))
6813 continue;6814 continue;
src/Package/Module.zig+1
...@@ -347,6 +347,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {...@@ -347,6 +347,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {
347 // See https://github.com/ziglang/zig/issues/23539347 // See https://github.com/ziglang/zig/issues/23539
348 if (target_util.isDynamicAMDGCNFeature(target, feature)) continue;348 if (target_util.isDynamicAMDGCNFeature(target, feature)) continue;
349349
350 if (target.cpu.arch.isPowerPC() and @as(std.Target.powerpc.Feature, @enumFromInt(feature.index)) == .@"64bit") continue;
350 if (target.cpu.arch.isX86() and @as(std.Target.x86.Feature, @enumFromInt(feature.index)) == .x32) continue;351 if (target.cpu.arch.isX86() and @as(std.Target.x86.Feature, @enumFromInt(feature.index)) == .x32) continue;
351352
352 var is_enabled = target.cpu.features.isEnabled(feature.index);353 var is_enabled = target.cpu.features.isEnabled(feature.index);