diff --git a/src/crash_report.zig b/src/crash_report.zig index 1b99d98f922eb6feabdd356dc9a09b9b214cc328..4294527c4511fa756af417a0c4b12e24701d421d 100644 --- 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"); }