| ... | @@ -1707,9 +1707,17 @@ fn spawnLld(comp: *Compilation, arena: Allocator, argv: []const []const u8) !voi | ... | @@ -1707,9 +1707,17 @@ fn spawnLld(comp: *Compilation, arena: Allocator, argv: []const []const u8) !voi |
| 1707 | diags.lockAndParseLldStderr(argv[1], stderr); | 1707 | diags.lockAndParseLldStderr(argv[1], stderr); |
| 1708 | return error.LinkFailure; | 1708 | return error.LinkFailure; |
| 1709 | }, | 1709 | }, |
| 1710 | else => { | 1710 | .signal => |sig| { |
| 1711 | if (comp.clang_passthrough_mode) std.process.abort(); | 1711 | if (comp.clang_passthrough_mode) std.process.abort(); |
| 1712 | return diags.fail("{s} terminated with stderr:\n{s}", .{ argv[0], stderr }); | 1712 | return diags.fail("{s} terminated with signal {t} and stderr:\n{s}", .{ argv[0], sig, stderr }); |
| | 1713 | }, |
| | 1714 | .stopped => |sig| { |
| | 1715 | if (comp.clang_passthrough_mode) std.process.abort(); |
| | 1716 | return diags.fail("{s} stopped with signal {d} and stderr:\n{s}", .{ argv[0], sig, stderr }); |
| | 1717 | }, |
| | 1718 | .unknown => |code| { |
| | 1719 | if (comp.clang_passthrough_mode) std.process.abort(); |
| | 1720 | return diags.fail("{s} terminated for unknown reason with code {d} and stderr:\n{s}", .{ argv[0], code, stderr }); |
| 1713 | }, | 1721 | }, |
| 1714 | } | 1722 | } |
| 1715 | | 1723 | |