| ... | @@ -411,8 +411,13 @@ pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerR | ... | @@ -411,8 +411,13 @@ pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerR |
| 411 | } | 411 | } |
| 412 | | 412 | |
| 413 | pub fn hasDebugInfo(target: std.Target) bool { | 413 | pub fn hasDebugInfo(target: std.Target) bool { |
| 414 | _ = target; | 414 | return switch (target.cpu.arch) { |
| 415 | return true; | 415 | .nvptx, .nvptx64 => { |
| | 416 | // TODO: not sure to test "ptx >= 7.5" with featureset |
| | 417 | return std.Target.nvptx.featureSetHas(target.cpu.features, .ptx75); |
| | 418 | }, |
| | 419 | else => true |
| | 420 | }; |
| 416 | } | 421 | } |
| 417 | | 422 | |
| 418 | pub fn defaultCompilerRtOptimizeMode(target: std.Target) std.builtin.Mode { | 423 | pub fn defaultCompilerRtOptimizeMode(target: std.Target) std.builtin.Mode { |