| author | |
| committer | |
| log | 86f40d3ff6529baaeba1f0e7e5d7d2f0bfce00a1 |
| tree | a9cb3c0d2829c51d65a86f93eaf011c2dcb474ce |
| parent | 9006cd9d09da083e89b58e19c0091924e1e4849f |
| signature |
1 files changed, 3 insertions(+), 3 deletions(-)
lib/c.zig+3-3| ... | ... | @@ -64,10 +64,10 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, _: ? |
| 64 | 64 | if (builtin.is_test) { |
| 65 | 65 | std.debug.panic("{s}", .{msg}); |
| 66 | 66 | } |
| 67 | if (native_os != .freestanding and native_os != .other) { | |
| 68 | std.os.abort(); | |
| 67 | switch (native_os) { | |
| 68 | .freestanding, .other, .amdhsa, .amdpal => while (true) {}, | |
| 69 | else => std.os.abort(), | |
| 69 | 70 | } |
| 70 | while (true) {} | |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | extern fn main(argc: c_int, argv: [*:null]?[*:0]u8) c_int; |