start code: enable segfault handler for stage2

This commit is contained in:
Andrew Kelley 2022-07-26 20:04:24 -07:00
parent c8c798685f
commit a127693f95

View File

@ -455,10 +455,6 @@ fn callMainWithArgs(argc: usize, argv: [*][*:0]u8, envp: [][*:0]u8) u8 {
std.os.argv = argv[0..argc]; std.os.argv = argv[0..argc];
std.os.environ = envp; std.os.environ = envp;
if (builtin.zig_backend == .stage2_llvm) {
return @call(.{ .modifier = .always_inline }, callMain, .{});
}
std.debug.maybeEnableSegfaultHandler(); std.debug.maybeEnableSegfaultHandler();
return initEventLoopAndCallMain(); return initEventLoopAndCallMain();