mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
link: restore lost passthrough behavior
Fixes bug introduced by 3b5be9fb6e
This commit is contained in:
parent
d09afc08da
commit
2648e3651e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue