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 {...@@ -131,16 +131,17 @@ fn dumpCrashContext() Io.Writer.Error!void {
131 } else if (AnalyzeBody.current) |anal| {131 } else if (AnalyzeBody.current) |anal| {
132 try dumpCrashContextSema(anal, w, &S.crash_heap);132 try dumpCrashContextSema(anal, w, &S.crash_heap);
133 } else if (LinkerOp.current) |linker_op| {133 } else if (LinkerOp.current) |linker_op| {
134 try w.writeAll("Linker snapshot:\n\n");134 try w.writeAll("Linker snapshot:\n");
135 if (build_options.enable_link_snapshots) {135 if (build_options.enable_link_snapshots) {
136 switch (try linker_op.lf.dump(w, linker_op.tid)) {136 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)"),
138 .disabled => try w.writeAll("(run with --debug-link-snapshot to dump linker state)"),138 .disabled => try w.writeAll("(run with --debug-link-snapshot to dump linker state)"),
139 .enabled => try w.writeAll("\n\n"),139 .enabled => {},
140 }140 }
141 } else {141 } else {
142 try w.writeAll("(build with -Dlink-snapshot to dump linker state)");142 try w.writeAll("(build with -Dlink-snapshot to dump linker state)");
143 }143 }
144 try w.writeAll("\n\n");
144 } else {145 } else {
145 try w.writeAll("(no context)\n\n");146 try w.writeAll("(no context)\n\n");
146 }147 }