link: LLD 15 requires two dashes on --error-limit
This commit is contained in:
@@ -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}));
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user