diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-11 21:35:51 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:19 -0700 |
| commit | 98da660e453789f578c04e641286bdf8ff84bcd4 (patch) | |
| tree | 46fba337a1d0dbc9e9499f42ebeec6d24fd3b319 /src/link/Coff | |
| parent | b5e2af49a0469c7f96ebabb8e796585d53382e7d (diff) | |
| download | zig-98da660e453789f578c04e641286bdf8ff84bcd4.tar.gz zig-98da660e453789f578c04e641286bdf8ff84bcd4.zip | |
linker: update options references of CsuObjects
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 369d837ae6..297900fae5 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -85,8 +85,8 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod man.hash.addListOfBytes(self.base.options.lib_dirs); man.hash.add(self.base.options.skip_linker_dependencies); if (self.base.options.link_libc) { - man.hash.add(self.base.options.libc_installation != null); - if (self.base.options.libc_installation) |libc_installation| { + man.hash.add(self.base.comp.libc_installation != null); + if (self.base.comp.libc_installation) |libc_installation| { man.hash.addBytes(libc_installation.crt_dir.?); if (target.abi == .msvc) { man.hash.addBytes(libc_installation.msvc_lib_dir.?); @@ -244,7 +244,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod } if (self.base.options.link_libc) { - if (self.base.options.libc_installation) |libc_installation| { + if (self.base.comp.libc_installation) |libc_installation| { try argv.append(try allocPrint(arena, "-LIBPATH:{s}", .{libc_installation.crt_dir.?})); if (target.abi == .msvc) { |
