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