fix: add back missing windows check for crash handler

This commit is contained in:
CJ van den Berg 2025-07-01 18:02:34 +02:00
parent 24730f90c0
commit 10476f4e87
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -148,10 +148,11 @@ pub fn main() anyerror!void {
return list_languages.list(a, stdout.writer(), tty_config); return list_languages.list(a, stdout.writer(), tty_config);
} }
if (std.posix.getenv("JITDEBUG")) |_| if (builtin.os.tag != .windows)
thespian.install_debugger() if (std.posix.getenv("JITDEBUG")) |_|
else if (@hasDecl(renderer, "install_crash_handler")) thespian.install_debugger()
renderer.install_crash_handler(); else if (@hasDecl(renderer, "install_crash_handler"))
renderer.install_crash_handler();
if (args.debug_wait) { if (args.debug_wait) {
std.debug.print("press return to start", .{}); std.debug.print("press return to start", .{});