diff options
| author | David Rubin <daviru007@icloud.com> | 2024-08-11 21:26:01 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-08-25 15:17:21 -0700 |
| commit | 863f74dcd20e56876bdc9a86fccf4e2e07b1a60e (patch) | |
| tree | 1434505624c36471748ed6e06523074404aab267 /src/link/Coff | |
| parent | bb531759bcf12191b60ea199594b8d1de30dabe7 (diff) | |
| download | zig-863f74dcd20e56876bdc9a86fccf4e2e07b1a60e.tar.gz zig-863f74dcd20e56876bdc9a86fccf4e2e07b1a60e.zip | |
comp: rename `module` to `zcu`
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 7273aa39b6..9225399c94 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -32,7 +32,7 @@ pub fn linkWithLLD(self: *Coff, arena: Allocator, tid: Zcu.PerThread.Id, prog_no // 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 (comp.module != null) blk: { + const module_obj_path: ?[]const u8 = if (comp.zcu != null) blk: { try self.flushModule(arena, tid, prog_node); if (fs.path.dirname(full_out_path)) |dirname| { @@ -296,7 +296,7 @@ pub fn linkWithLLD(self: *Coff, arena: Allocator, tid: Zcu.PerThread.Id, prog_no if (self.subsystem) |explicit| break :blk explicit; switch (target.os.tag) { .windows => { - if (comp.module) |module| { + if (comp.zcu) |module| { if (module.stage1_flags.have_dllmain_crt_startup or is_dyn_lib) break :blk null; if (module.stage1_flags.have_c_main or comp.config.is_test or @@ -440,7 +440,7 @@ pub fn linkWithLLD(self: *Coff, arena: Allocator, tid: Zcu.PerThread.Id, prog_no } else { try argv.append("-NODEFAULTLIB"); if (!is_lib and entry_name == null) { - if (comp.module) |module| { + if (comp.zcu) |module| { if (module.stage1_flags.have_winmain_crt_startup) { try argv.append("-ENTRY:WinMainCRTStartup"); } else { |
