diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-11 21:21:01 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:19 -0700 |
| commit | 2be36c5b8d7d22c2ffc20b88e497da7e6612de5c (patch) | |
| tree | 05c9d7f58e82ff51ffa5be439ff75b37abe3b6ba /src/link/Coff | |
| parent | 2bef0715c740024c515dce73d267ead5af49d1a9 (diff) | |
| download | zig-2be36c5b8d7d22c2ffc20b88e497da7e6612de5c.tar.gz zig-2be36c5b8d7d22c2ffc20b88e497da7e6612de5c.zip | |
linker: update references to module
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 4d4dd840cf..45a6f9c14c 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -30,7 +30,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod // If there is no Zig code to compile, then we should skip flushing the output file because it // will not be part of the linker line anyway. - const module_obj_path: ?[]const u8 = if (self.base.options.module != null) blk: { + const module_obj_path: ?[]const u8 = if (self.base.comp.module != null) blk: { try self.flushModule(comp, prog_node); if (fs.path.dirname(full_out_path)) |dirname| { @@ -289,7 +289,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod if (self.base.options.subsystem) |explicit| break :blk explicit; switch (target.os.tag) { .windows => { - if (self.base.options.module) |module| { + if (self.base.comp.module) |module| { if (module.stage1_flags.have_dllmain_crt_startup or is_dyn_lib) break :blk null; if (module.stage1_flags.have_c_main or self.base.options.is_test or @@ -450,7 +450,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod } else { try argv.append("-NODEFAULTLIB"); if (!is_lib and self.base.options.entry == null) { - if (self.base.options.module) |module| { + if (self.base.comp.module) |module| { if (module.stage1_flags.have_winmain_crt_startup) { try argv.append("-ENTRY:WinMainCRTStartup"); } else { |
