| ... | @@ -865,7 +865,7 @@ pub const Object = struct { | ... | @@ -865,7 +865,7 @@ pub const Object = struct { |
| 865 | // a terrible tragedy. | 865 | // a terrible tragedy. |
| 866 | const compile_unit_dir = blk: { | 866 | const compile_unit_dir = blk: { |
| 867 | if (comp.module) |zcu| m: { | 867 | if (comp.module) |zcu| m: { |
| 868 | const d = try zcu.root_mod.root.joinString(arena, ""); | 868 | const d = try zcu.main_mod.root.joinString(arena, ""); |
| 869 | if (d.len == 0) break :m; | 869 | if (d.len == 0) break :m; |
| 870 | if (std.fs.path.isAbsolute(d)) break :blk d; | 870 | if (std.fs.path.isAbsolute(d)) break :blk d; |
| 871 | break :blk std.fs.realpathAlloc(arena, d) catch break :blk d; | 871 | break :blk std.fs.realpathAlloc(arena, d) catch break :blk d; |