| ... | ... | @@ -95,6 +95,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod |
| 95 | 95 | man.hash.add(self.base.options.tsaware); |
| 96 | 96 | man.hash.add(self.base.options.nxcompat); |
| 97 | 97 | man.hash.add(self.base.options.dynamicbase); |
| 98 | man.hash.addOptional(self.base.options.allow_shlib_undefined); |
| 98 | 99 | // strip does not need to go into the linker hash because it is part of the hash namespace |
| 99 | 100 | man.hash.addOptional(self.base.options.major_subsystem_version); |
| 100 | 101 | man.hash.addOptional(self.base.options.minor_subsystem_version); |
| ... | ... | @@ -226,6 +227,11 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod |
| 226 | 227 | if (!self.base.options.dynamicbase) { |
| 227 | 228 | try argv.append("-dynamicbase:NO"); |
| 228 | 229 | } |
| 230 | if (self.base.options.allow_shlib_undefined) |allow_shlib_undefined| { |
| 231 | if (allow_shlib_undefined) { |
| 232 | try argv.append("-FORCE:UNRESOLVED"); |
| 233 | } |
| 234 | } |
| 229 | 235 | |
| 230 | 236 | try argv.append(try allocPrint(arena, "-OUT:{s}", .{full_out_path})); |
| 231 | 237 | |