zig

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

commit 587030e75440d26a52cc65e58d14a66a4f459096 (tree)
parent a98a4f465797a7205f9b1cefedfcb4957b65d593
Author: kcbanner <kcbanner@gmail.com>
Date:   Fri,  5 Jun 2026 01:55:35 -0400

- Fixup linker snapshot crash report output

Diffstat:
Msrc/crash_report.zig | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/crash_report.zig b/src/crash_report.zig @@ -131,16 +131,17 @@ fn dumpCrashContext() Io.Writer.Error!void { } else if (AnalyzeBody.current) |anal| { try dumpCrashContextSema(anal, w, &S.crash_heap); } else if (LinkerOp.current) |linker_op| { - try w.writeAll("Linker snapshot:\n\n"); + try w.writeAll("Linker snapshot:\n"); if (build_options.enable_link_snapshots) { switch (try linker_op.lf.dump(w, linker_op.tid)) { - .unsupported => try w.writeAll("(backend does not support link snapshots))"), + .unsupported => try w.writeAll("(backend does not support link snapshots)"), .disabled => try w.writeAll("(run with --debug-link-snapshot to dump linker state)"), - .enabled => try w.writeAll("\n\n"), + .enabled => {}, } } else { try w.writeAll("(build with -Dlink-snapshot to dump linker state)"); } + try w.writeAll("\n\n"); } else { try w.writeAll("(no context)\n\n"); }