diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-11 21:23:12 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:19 -0700 |
| commit | b5e2af49a0469c7f96ebabb8e796585d53382e7d (patch) | |
| tree | c59019f44d7e871a3771c4d38a86e4919f5e6c79 /src/link/Coff | |
| parent | 6ec6c077957c8d1f96d83299b35f6c84a34b07e6 (diff) | |
| download | zig-b5e2af49a0469c7f96ebabb8e796585d53382e7d.tar.gz zig-b5e2af49a0469c7f96ebabb8e796585d53382e7d.zip | |
linker: update link_mode references
Diffstat (limited to 'src/link/Coff')
| -rw-r--r-- | src/link/Coff/lld.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/link/Coff/lld.zig b/src/link/Coff/lld.zig index 4d2b569d56..369d837ae6 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -46,7 +46,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod defer sub_prog_node.end(); const is_lib = self.base.comp.config.output_mode == .Lib; - const is_dyn_lib = self.base.options.link_mode == .Dynamic and is_lib; + const is_dyn_lib = self.base.comp.config.link_mode == .Dynamic and is_lib; const is_exe_or_dyn_lib = is_dyn_lib or self.base.comp.config.output_mode == .Exe; const link_in_crt = self.base.options.link_libc and is_exe_or_dyn_lib; const target = self.base.options.target; @@ -423,7 +423,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod } } } else { - const lib_str = switch (self.base.options.link_mode) { + const lib_str = switch (self.base.comp.config.link_mode) { .Dynamic => "", .Static => "lib", }; @@ -431,7 +431,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod .Debug => "d", else => "", }; - switch (self.base.options.link_mode) { + switch (self.base.comp.config.link_mode) { .Static => try argv.append(try allocPrint(arena, "libcmt{s}.lib", .{d_str})), .Dynamic => try argv.append(try allocPrint(arena, "msvcrt{s}.lib", .{d_str})), } |
