link: LLD 15 requires two dashes on --error-limit

This commit is contained in:
Andrew Kelley 2022-08-03 14:19:25 -07:00
parent d631bfe060
commit 900f969cb3
2 changed files with 2 additions and 2 deletions

View File

@ -1426,7 +1426,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node) !v
try argv.append("-r");
}
try argv.append("-error-limit=0");
try argv.append("--error-limit=0");
if (self.base.options.sysroot) |sysroot| {
try argv.append(try std.fmt.allocPrint(arena, "--sysroot={s}", .{sysroot}));

View File

@ -2641,7 +2641,7 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) !
// This is necessary because LLD does not behave properly as a library -
// it calls exit() and does not reset all global data between invocations.
try argv.appendSlice(&[_][]const u8{ comp.self_exe_path.?, "wasm-ld" });
try argv.append("-error-limit=0");
try argv.append("--error-limit=0");
if (self.base.options.lto) {
switch (self.base.options.optimize_mode) {