diff options
| author | Ali Cheraghi <alichraghi@proton.me> | 2025-04-19 20:33:03 +0330 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-21 09:49:19 +0200 |
| commit | 13541bc1c0f97c39591c2ba82e9a8c7979ce7b63 (patch) | |
| tree | 25c34bac12c22a6a199bf2c81f7715460c76b596 /src/Compilation.zig | |
| parent | f01833e03eea786a05635cfbe142f581e9281b51 (diff) | |
| download | zig-13541bc1c0f97c39591c2ba82e9a8c7979ce7b63.tar.gz zig-13541bc1c0f97c39591c2ba82e9a8c7979ce7b63.zip | |
Module: ignore `xnack` and `sramecc` features on some gpu models
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index c1d6ef70c8..0af2db9812 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -5989,6 +5989,10 @@ pub fn addCCArgs( std.mem.startsWith(u8, llvm_name, "hard-float")) continue; + // Ignore these until we figure out how to handle the concept of omitting features. + // See https://github.com/ziglang/zig/issues/23539 + if (target_util.isDynamicAMDGCNFeature(target, feature)) continue; + argv.appendSliceAssumeCapacity(&[_][]const u8{ "-Xclang", "-target-feature", "-Xclang" }); const plus_or_minus = "-+"[@intFromBool(is_enabled)]; const arg = try std.fmt.allocPrint(arena, "{c}{s}", .{ plus_or_minus, llvm_name }); |
