| author | |
| committer | |
| log | 76332b6b4d21647b41752963fe43988567f3a792 |
| tree | c8c6710104a022e4e0795d60f1ffdcf8bfe40820 |
| parent | 07ba7fdb054f52acd5d2496b89e62ee098736b05 |
| signature |
2 files changed, 2 insertions(+), 0 deletions(-)
src/Compilation.zig+1| ... | @@ -6813,6 +6813,7 @@ pub fn addCCArgs( | ... | @@ -6813,6 +6813,7 @@ pub fn addCCArgs( |
| 6813 | // We communicate these to Clang through the dedicated options. | 6813 | // We communicate these to Clang through the dedicated options. |
| 6814 | if (std.mem.startsWith(u8, llvm_name, "soft-float") or | 6814 | if (std.mem.startsWith(u8, llvm_name, "soft-float") or |
| 6815 | std.mem.startsWith(u8, llvm_name, "hard-float") or | 6815 | std.mem.startsWith(u8, llvm_name, "hard-float") or |
| 6816 | (target.cpu.arch.isPowerPC() and std.mem.startsWith(u8, llvm_name, "64bit")) or | ||
| 6816 | (target.cpu.arch.isX86() and std.mem.startsWith(u8, llvm_name, "x32")) or | 6817 | (target.cpu.arch.isX86() and std.mem.startsWith(u8, llvm_name, "x32")) or |
| 6817 | (target.cpu.arch == .s390x and std.mem.eql(u8, llvm_name, "backchain"))) | 6818 | (target.cpu.arch == .s390x and std.mem.eql(u8, llvm_name, "backchain"))) |
| 6818 | continue; | 6819 | 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/23539 | 347 | // See https://github.com/ziglang/zig/issues/23539 |
| 348 | if (target_util.isDynamicAMDGCNFeature(target, feature)) continue; | 348 | if (target_util.isDynamicAMDGCNFeature(target, feature)) continue; |
| 349 | 349 | ||
| 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; |
| 351 | 352 | ||
| 352 | var is_enabled = target.cpu.features.isEnabled(feature.index); | 353 | var is_enabled = target.cpu.features.isEnabled(feature.index); |