| ... | @@ -64,10 +64,10 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, _: ? | ... | @@ -64,10 +64,10 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, _: ? |
| 64 | if (builtin.is_test) { | 64 | if (builtin.is_test) { |
| 65 | std.debug.panic("{s}", .{msg}); | 65 | std.debug.panic("{s}", .{msg}); |
| 66 | } | 66 | } |
| 67 | if (native_os != .freestanding and native_os != .other) { | 67 | switch (native_os) { |
| 68 | std.os.abort(); | 68 | .freestanding, .other, .amdhsa, .amdpal => while (true) {}, |
| | 69 | else => std.os.abort(), |
| 69 | } | 70 | } |
| 70 | while (true) {} | | |
| 71 | } | 71 | } |
| 72 | | 72 | |
| 73 | extern fn main(argc: c_int, argv: [*:null]?[*:0]u8) c_int; | 73 | extern fn main(argc: c_int, argv: [*:null]?[*:0]u8) c_int; |