Commit 74f40ddd11

Robin Voetter <robin@voetter.nl>
2023-07-01 14:27:57
spirv: enable simplified default panic handler
SPIR-V cannot print, so we cannot yet use the fancy default panic handler. Instead we will just use the infinite loop one for now.
1 parent 8eee392
Changed files (1)
lib
lib/std/builtin.zig
@@ -741,7 +741,8 @@ pub fn default_panic(msg: []const u8, error_return_trace: ?*StackTrace, ret_addr
         builtin.zig_backend == .stage2_x86_64 or
         builtin.zig_backend == .stage2_x86 or
         builtin.zig_backend == .stage2_riscv64 or
-        builtin.zig_backend == .stage2_sparc64)
+        builtin.zig_backend == .stage2_sparc64 or
+        builtin.zig_backend == .stage2_spirv64)
     {
         while (true) {
             @breakpoint();