diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-05-04 11:03:45 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-05-04 11:03:45 -0400 |
| commit | 5bbb2f966a4d29c7003767255515b7c69a2f1178 (patch) | |
| tree | 6f373699b084d2b90ab13639e369abb9869f4b16 /src/link.zig | |
| parent | 16d368d0d28b1654dae5e405b9e6e067f833e1cf (diff) | |
| download | zig-5bbb2f966a4d29c7003767255515b7c69a2f1178.tar.gz zig-5bbb2f966a4d29c7003767255515b7c69a2f1178.zip | |
link: restore lost passthrough behavior
Fixes bug introduced by 3b5be9fb6e06f6494ca05fb087a2121e220beb3f
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index ae61e76ebf..8aec0799e2 100644 --- a/src/link.zig +++ b/src/link.zig @@ -1081,10 +1081,12 @@ pub fn spawnLld( switch (term) { .Exited => |code| if (code != 0) { + if (comp.clang_passthrough_mode) std.process.exit(code); comp.lockAndParseLldStderr(argv[1], stderr); return error.LLDReportedFailure; }, else => { + if (comp.clang_passthrough_mode) std.process.abort(); log.err("{s} terminated with stderr:\n{s}", .{ argv[0], stderr }); return error.LLDCrashed; }, |
