Commit cc650abf09

Michael Dusan <michael.dusan@gmail.com>
2021-03-13 00:58:04
lld: handle error instead of abort
closes #6675
1 parent ce14bc7
Changed files (1)
src
src/link/MachO.zig
@@ -835,7 +835,10 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void {
                             std.process.exit(1);
                         }
                     },
-                    else => std.process.abort(),
+                    else => {
+                        log.err("{s} terminated", .{ argv.items[0] });
+                        return error.LLDCrashed;
+                    },
                 }
             } else {
                 child.stdin_behavior = .Ignore;