Commit 5bbb2f966a

Jacob Young <jacobly0@users.noreply.github.com>
2024-05-04 17:03:45
link: restore lost passthrough behavior
Fixes bug introduced by 3b5be9fb6e06f6494ca05fb087a2121e220beb3f
1 parent 16d368d
Changed files (1)
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;
         },