lld: handle error instead of abort

closes #6675
This commit is contained in:
Michael Dusan
2021-03-12 18:58:04 -05:00
committed by Jakub Konka
parent ce14bc7176
commit cc650abf09

View File

@@ -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;