From 863f74dcd20e56876bdc9a86fccf4e2e07b1a60e Mon Sep 17 00:00:00 2001 From: David Rubin Date: Sun, 11 Aug 2024 21:26:01 -0700 Subject: comp: rename `module` to `zcu` --- src/link/Elf.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/link/Elf.zig') diff --git a/src/link/Elf.zig b/src/link/Elf.zig index 088485a78d..e89c475d10 100644 --- a/src/link/Elf.zig +++ b/src/link/Elf.zig @@ -212,7 +212,7 @@ pub fn createEmpty( const use_lld = build_options.have_llvm and comp.config.use_lld; const use_llvm = comp.config.use_llvm; - const opt_zcu = comp.module; + const opt_zcu = comp.zcu; const output_mode = comp.config.output_mode; const link_mode = comp.config.link_mode; const optimize_mode = comp.root_mod.optimize_mode; @@ -2084,7 +2084,7 @@ fn linkWithLLD(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: s // 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| { -- cgit v1.2.3