authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-07-01 14:27:57+02:00
committergravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-07-01 14:27:57+02:00
log74f40ddd11451707a046f2a8b0807a656f81b51c
treeffd03bd206b176cd322486ad479c31c4432d039d
parent8eee3928626f9469dbd5ca15127b836e48553bd3
signaturebadge-check Signed by SSH key SHA256:CQ99aPxq+RueiL9u7z0FEki5Fm7V6T8q4PrEGmINrA4

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 files changed, 2 insertions(+), 1 deletions(-)

lib/std/builtin.zig+2-1
...@@ -741,7 +741,8 @@ pub fn default_panic(msg: []const u8, error_return_trace: ?*StackTrace, ret_addr...@@ -741,7 +741,8 @@ pub fn default_panic(msg: []const u8, error_return_trace: ?*StackTrace, ret_addr
741 builtin.zig_backend == .stage2_x86_64 or741 builtin.zig_backend == .stage2_x86_64 or
742 builtin.zig_backend == .stage2_x86 or742 builtin.zig_backend == .stage2_x86 or
743 builtin.zig_backend == .stage2_riscv64 or743 builtin.zig_backend == .stage2_riscv64 or
744 builtin.zig_backend == .stage2_sparc64)744 builtin.zig_backend == .stage2_sparc64 or
745 builtin.zig_backend == .stage2_spirv64)
745 {746 {
746 while (true) {747 while (true) {
747 @breakpoint();748 @breakpoint();