Commit 78199a684f

Andrew Kelley <andrew@ziglang.org>
2020-10-22 23:33:46
stage2 LLD .ar linking: fix wrong object file path
closes #6721 closes #6722
1 parent 198d143
Changed files (1)
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);