aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/target.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/target.zig b/src/target.zig
index 3fbaf6abc4..2c05a80258 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -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 {