diff options
| author | Robin Voetter <robin@voetter.nl> | 2023-07-01 14:27:57 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-07-01 14:27:57 +0200 |
| commit | 74f40ddd11451707a046f2a8b0807a656f81b51c (patch) | |
| tree | ffd03bd206b176cd322486ad479c31c4432d039d /lib | |
| parent | 8eee3928626f9469dbd5ca15127b836e48553bd3 (diff) | |
| download | zig-74f40ddd11451707a046f2a8b0807a656f81b51c.tar.gz zig-74f40ddd11451707a046f2a8b0807a656f81b51c.zip | |
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/builtin.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 99761b146d..bfb92952e2 100644 --- a/lib/std/builtin.zig +++ b/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(); |
