From 98da660e453789f578c04e641286bdf8ff84bcd4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 11 Dec 2023 21:35:51 -0700 Subject: linker: update options references of CsuObjects --- src/link/Coff/lld.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/link/Coff') 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) { -- cgit v1.2.3