| ... | @@ -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 | } |