| ... | @@ -435,7 +435,8 @@ pub const File = struct { | ... | @@ -435,7 +435,8 @@ pub const File = struct { |
| 435 | .target = base.options.target, | 435 | .target = base.options.target, |
| 436 | .output_mode = .Obj, | 436 | .output_mode = .Obj, |
| 437 | }); | 437 | }); |
| 438 | const full_obj_path = try directory.join(arena, &[_][]const u8{obj_basename}); | 438 | const o_directory = base.options.module.?.zig_cache_artifact_directory; |
| | 439 | const full_obj_path = try o_directory.join(arena, &[_][]const u8{obj_basename}); |
| 439 | break :blk full_obj_path; | 440 | break :blk full_obj_path; |
| 440 | } | 441 | } |
| 441 | try base.flushModule(comp); | 442 | try base.flushModule(comp); |