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