stage2 LLD .ar linking: fix wrong object file path

closes #6721
closes #6722
master
Andrew Kelley 2020-10-22 14:33:46 -07:00
parent 198d1438ea
commit 78199a684f
1 changed files with 2 additions and 1 deletions

View File

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