| ... | @@ -396,26 +396,29 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification { | ... | @@ -396,26 +396,29 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification { |
| 396 | } | 396 | } |
| 397 | | 397 | |
| 398 | pub fn hasDebugInfo(target: *const std.Target) bool { | 398 | pub fn hasDebugInfo(target: *const std.Target) bool { |
| 399 | return switch (target.cpu.arch) { | 399 | return switch (target.ofmt) { |
| 400 | // TODO: We should make newer PTX versions depend on older ones so we'd just check `ptx75`. | 400 | .raw, .hex => false, |
| 401 | .nvptx, .nvptx64 => target.cpu.hasAny(.nvptx, &.{ | 401 | else => switch (target.cpu.arch) { |
| 402 | .ptx75, | 402 | // TODO: We should make newer PTX versions depend on older ones so we'd just check `ptx75`. |
| 403 | .ptx76, | 403 | .nvptx, .nvptx64 => target.cpu.hasAny(.nvptx, &.{ |
| 404 | .ptx77, | 404 | .ptx75, |
| 405 | .ptx78, | 405 | .ptx76, |
| 406 | .ptx80, | 406 | .ptx77, |
| 407 | .ptx81, | 407 | .ptx78, |
| 408 | .ptx82, | 408 | .ptx80, |
| 409 | .ptx83, | 409 | .ptx81, |
| 410 | .ptx84, | 410 | .ptx82, |
| 411 | .ptx85, | 411 | .ptx83, |
| 412 | .ptx86, | 412 | .ptx84, |
| 413 | .ptx87, | 413 | .ptx85, |
| 414 | .ptx88, | 414 | .ptx86, |
| 415 | .ptx90, | 415 | .ptx87, |
| 416 | }), | 416 | .ptx88, |
| 417 | .bpfel, .bpfeb => false, | 417 | .ptx90, |
| 418 | else => true, | 418 | }), |
| | 419 | .bpfel, .bpfeb => false, |
| | 420 | else => true, |
| | 421 | }, |
| 419 | }; | 422 | }; |
| 420 | } | 423 | } |
| 421 | | 424 | |