aboutsummaryrefslogtreecommitdiff
path: root/src/link/Wasm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-11 21:23:12 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 17:51:19 -0700
commitb5e2af49a0469c7f96ebabb8e796585d53382e7d (patch)
treec59019f44d7e871a3771c4d38a86e4919f5e6c79 /src/link/Wasm.zig
parent6ec6c077957c8d1f96d83299b35f6c84a34b07e6 (diff)
downloadzig-b5e2af49a0469c7f96ebabb8e796585d53382e7d.tar.gz
zig-b5e2af49a0469c7f96ebabb8e796585d53382e7d.zip
linker: update link_mode references
Diffstat (limited to 'src/link/Wasm.zig')
-rw-r--r--src/link/Wasm.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig
index 84b5c792aa..28eeaedba4 100644
--- a/src/link/Wasm.zig
+++ b/src/link/Wasm.zig
@@ -4750,7 +4750,7 @@ fn linkWithLLD(wasm: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) !
try argv.append("--allow-undefined");
}
- if (wasm.base.comp.config.output_mode == .Lib and wasm.base.options.link_mode == .Dynamic) {
+ if (wasm.base.comp.config.output_mode == .Lib and wasm.base.comp.config.link_mode == .Dynamic) {
try argv.append("--shared");
}
if (wasm.base.options.pie) {
@@ -4770,7 +4770,7 @@ fn linkWithLLD(wasm: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) !
if (target.os.tag == .wasi) {
const is_exe_or_dyn_lib = wasm.base.comp.config.output_mode == .Exe or
- (wasm.base.comp.config.output_mode == .Lib and wasm.base.options.link_mode == .Dynamic);
+ (wasm.base.comp.config.output_mode == .Lib and wasm.base.comp.config.link_mode == .Dynamic);
if (is_exe_or_dyn_lib) {
for (wasm.wasi_emulated_libs) |crt_file| {
try argv.append(try comp.get_libc_crt_file(