fix: don't try to call thespian debugger signal handler on macos

This commit is contained in:
CJ van den Berg 2025-07-14 18:42:32 +02:00
parent 81f616afba
commit 17859b6dfd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -153,7 +153,7 @@ fn handle_crash(sig: i32, info: *const std.posix.siginfo_t, ctx_ptr: ?*anyopaque
self.vx.deinit(self.allocator, self.tty.anyWriter()); self.vx.deinit(self.allocator, self.tty.anyWriter());
self.tty.deinit(); self.tty.deinit();
} }
if (jit_debugger_enabled) { if (builtin.os.tag == .linux and jit_debugger_enabled) {
handleSegfaultPosixNoAbort(sig, info, ctx_ptr); handleSegfaultPosixNoAbort(sig, info, ctx_ptr);
@import("thespian").sighdl_debugger(sig, @ptrCast(@constCast(info)), ctx_ptr); @import("thespian").sighdl_debugger(sig, @ptrCast(@constCast(info)), ctx_ptr);
std.posix.abort(); std.posix.abort();