| author | |
| committer | |
| log | 07ba7fdb054f52acd5d2496b89e62ee098736b05 |
| tree | 8a2671d9cb2bb61cfb0a8296449097be94393123 |
| parent | e88307dc404b5699a0d4c17dd6598519d8e08ed4 |
| signature |
2 files changed, 3 insertions(+), 0 deletions(-)
src/Compilation.zig+1| ... | ... | @@ -6813,6 +6813,7 @@ pub fn addCCArgs( |
| 6813 | 6813 | // We communicate these to Clang through the dedicated options. |
| 6814 | 6814 | if (std.mem.startsWith(u8, llvm_name, "soft-float") or |
| 6815 | 6815 | std.mem.startsWith(u8, llvm_name, "hard-float") or |
| 6816 | (target.cpu.arch.isX86() and std.mem.startsWith(u8, llvm_name, "x32")) or | |
| 6816 | 6817 | (target.cpu.arch == .s390x and std.mem.eql(u8, llvm_name, "backchain"))) |
| 6817 | 6818 | continue; |
| 6818 | 6819 |
src/Package/Module.zig+2| ... | ... | @@ -347,6 +347,8 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module { |
| 347 | 347 | // See https://github.com/ziglang/zig/issues/23539 |
| 348 | 348 | if (target_util.isDynamicAMDGCNFeature(target, feature)) continue; |
| 349 | 349 | |
| 350 | if (target.cpu.arch.isX86() and @as(std.Target.x86.Feature, @enumFromInt(feature.index)) == .x32) continue; | |
| 351 | ||
| 350 | 352 | var is_enabled = target.cpu.features.isEnabled(feature.index); |
| 351 | 353 | if (target.cpu.arch == .s390x and @as(std.Target.s390x.Feature, @enumFromInt(feature.index)) == .backchain) { |
| 352 | 354 | is_enabled = !omit_frame_pointer; |