authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2026-06-05 01:55:35-04:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2026-06-23 00:26:55-04:00
log587030e75440d26a52cc65e58d14a66a4f459096
tree4829f5123e19b861836274f065640319ab1d8c9d
parenta98a4f465797a7205f9b1cefedfcb4957b65d593

- Fixup linker snapshot crash report output


1 files changed, 4 insertions(+), 3 deletions(-)

src/crash_report.zig+4-3
......@@ -131,16 +131,17 @@ fn dumpCrashContext() Io.Writer.Error!void {
131131 } else if (AnalyzeBody.current) |anal| {
132132 try dumpCrashContextSema(anal, w, &S.crash_heap);
133133 } else if (LinkerOp.current) |linker_op| {
134 try w.writeAll("Linker snapshot:\n\n");
134 try w.writeAll("Linker snapshot:\n");
135135 if (build_options.enable_link_snapshots) {
136136 switch (try linker_op.lf.dump(w, linker_op.tid)) {
137 .unsupported => try w.writeAll("(backend does not support link snapshots))"),
137 .unsupported => try w.writeAll("(backend does not support link snapshots)"),
138138 .disabled => try w.writeAll("(run with --debug-link-snapshot to dump linker state)"),
139 .enabled => try w.writeAll("\n\n"),
139 .enabled => {},
140140 }
141141 } else {
142142 try w.writeAll("(build with -Dlink-snapshot to dump linker state)");
143143 }
144 try w.writeAll("\n\n");
144145 } else {
145146 try w.writeAll("(no context)\n\n");
146147 }