authorgravatar for gwenzek@users.noreply.github.comGuillaume Wenzek <gwenzek@users.noreply.github.com> 2022-09-01 21:47:44+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-15 10:39:19-07:00
logb3dc80a1e33cf78205666d01a6dcf53bd5a4698f
tree52931db256ed7bc335cd07c684f17ca518d19a43
parent85c6b0f0bcda2e3bb2dc5f3347e5c6712d268a39

disable debug info for ptx<7.5


1 files changed, 7 insertions(+), 2 deletions(-)

src/target.zig+7-2
......@@ -411,8 +411,13 @@ pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerR
411411}
412412
413413pub fn hasDebugInfo(target: std.Target) bool {
414 _ = target;
415 return true;
414 return switch (target.cpu.arch) {
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 };
416421}
417422
418423pub fn defaultCompilerRtOptimizeMode(target: std.Target) std.builtin.Mode {