mirror of
https://github.com/ziglang/zig.git
synced 2026-02-04 05:33:39 +00:00
disable debug info for ptx<7.5
This commit is contained in:
parent
85c6b0f0bc
commit
b3dc80a1e3
@ -411,8 +411,13 @@ pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerR
|
||||
}
|
||||
|
||||
pub fn hasDebugInfo(target: std.Target) bool {
|
||||
_ = target;
|
||||
return true;
|
||||
return switch (target.cpu.arch) {
|
||||
.nvptx, .nvptx64 => {
|
||||
// TODO: not sure to test "ptx >= 7.5" with featureset
|
||||
return std.Target.nvptx.featureSetHas(target.cpu.features, .ptx75);
|
||||
},
|
||||
else => true
|
||||
};
|
||||
}
|
||||
|
||||
pub fn defaultCompilerRtOptimizeMode(target: std.Target) std.builtin.Mode {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user