aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-06 22:29:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-06 22:29:40 -0700
commit33fa29601921d88097a1ee3c0d92b93047a5186d (patch)
tree5926ea2d182a76f80429776a5473202738c9b656 /src/link
parentc1cf158729f4d726639a5695754957f9f45f89da (diff)
downloadzig-33fa29601921d88097a1ee3c0d92b93047a5186d.tar.gz
zig-33fa29601921d88097a1ee3c0d92b93047a5186d.zip
stage2: pass proper can_exit_early value to LLD
and adjust the warning message for invoking LLD twice in the same process.
Diffstat (limited to 'src/link')
-rw-r--r--src/link/Coff.zig2
-rw-r--r--src/link/Elf.zig2
-rw-r--r--src/link/Wasm.zig2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig
index 8426e5d50c..bc5837fe47 100644
--- a/src/link/Coff.zig
+++ b/src/link/Coff.zig
@@ -1417,7 +1417,7 @@ fn linkWithLLD(self: *Coff, comp: *Compilation) !void {
}
}
} else {
- const exit_code = try lldMain(arena, argv.items);
+ const exit_code = try lldMain(arena, argv.items, false);
if (exit_code != 0) {
if (comp.clang_passthrough_mode) {
std.process.exit(exit_code);
diff --git a/src/link/Elf.zig b/src/link/Elf.zig
index 2a550d26e6..afaf41a2f9 100644
--- a/src/link/Elf.zig
+++ b/src/link/Elf.zig
@@ -2009,7 +2009,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void {
}
}
} else {
- const exit_code = try lldMain(arena, argv.items);
+ const exit_code = try lldMain(arena, argv.items, false);
if (exit_code != 0) {
if (comp.clang_passthrough_mode) {
std.process.exit(exit_code);
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig
index 91952468cc..e6988e9232 100644
--- a/src/link/Wasm.zig
+++ b/src/link/Wasm.zig
@@ -1545,7 +1545,7 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void {
}
}
} else {
- const exit_code = try lldMain(arena, argv.items);
+ const exit_code = try lldMain(arena, argv.items, false);
if (exit_code != 0) {
if (comp.clang_passthrough_mode) {
std.process.exit(exit_code);