authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-22 14:33:46-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-22 14:33:46-07:00
log78199a684f50f37f652dabcc88b02e8b998ab5fa
tree53238cfa341f07c6b6288946e7a8fd06771ee04e
parent198d1438eac27ec9f211eda8d1243875a795cae3

stage2 LLD .ar linking: fix wrong object file path

closes #6721 closes #6722

1 files changed, 2 insertions(+), 1 deletions(-)

src/link.zig+2-1
...@@ -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);