mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
feat: overhaul the crash handler (#10203)
* some work * linux things * linux things * feat: tracestrings on Windows * bwaa * more work on the crash handler * okay * adgadsgbcxcv * ya * dsafds * a * wuh * a * bru h * ok * yay * window * alright * oops * yeah * a * a * OOM handling * fix on window
This commit is contained in:
@@ -146,7 +146,7 @@ const fs = std.fs;
|
||||
pub fn build(b: *Build) !void {
|
||||
build_(b) catch |err| {
|
||||
if (@errorReturnTrace()) |trace| {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
(std.debug).dumpStackTrace(trace.*);
|
||||
}
|
||||
|
||||
return err;
|
||||
@@ -394,7 +394,7 @@ pub fn build_(b: *Build) !void {
|
||||
obj.linkLibC();
|
||||
obj.dll_export_fns = true;
|
||||
obj.strip = false;
|
||||
obj.omit_frame_pointer = optimize != .Debug;
|
||||
obj.omit_frame_pointer = false;
|
||||
obj.subsystem = .Console;
|
||||
|
||||
// Disable stack probing on x86 so we don't need to include compiler_rt
|
||||
|
||||
Reference in New Issue
Block a user