zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 74f40ddd11451707a046f2a8b0807a656f81b51c (tree)
parent 8eee3928626f9469dbd5ca15127b836e48553bd3
Author: Robin Voetter <robin@voetter.nl>
Date:   Sat,  1 Jul 2023 14:27:57 +0200

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:
Mlib/std/builtin.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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();