commit 5bbb2f966a4d29c7003767255515b7c69a2f1178 (tree)
parent 16d368d0d28b1654dae5e405b9e6e067f833e1cf
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date: Sat, 4 May 2024 11:03:45 -0400
link: restore lost passthrough behavior
Fixes bug introduced by 3b5be9fb6e06f6494ca05fb087a2121e220beb3f
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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;
},