diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-22 14:33:46 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-22 14:33:46 -0700 |
| commit | 78199a684f50f37f652dabcc88b02e8b998ab5fa (patch) | |
| tree | 53238cfa341f07c6b6288946e7a8fd06771ee04e /src/link.zig | |
| parent | 198d1438eac27ec9f211eda8d1243875a795cae3 (diff) | |
| download | zig-78199a684f50f37f652dabcc88b02e8b998ab5fa.tar.gz zig-78199a684f50f37f652dabcc88b02e8b998ab5fa.zip | |
stage2 LLD .ar linking: fix wrong object file path
closes #6721
closes #6722
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig index b7b891b5b1..3f6ceb7ac3 100644 --- a/src/link.zig +++ b/src/link.zig @@ -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); |
