aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-13 15:04:25 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-09-24 20:01:19 -0700
commitf4d328e2ac0583336085f647df18c7430b7948be (patch)
tree78585360110509894beb540898c35ccebd932107 /src/Compilation.zig
parentf0d3b7abb8e96aede796c80ab73a0f82ecced722 (diff)
downloadzig-f4d328e2ac0583336085f647df18c7430b7948be.tar.gz
zig-f4d328e2ac0583336085f647df18c7430b7948be.zip
Compilation: use renameTmpIntoCache
solves several problems with this pattern
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index d0f33f123d..a1369ec420 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -5718,7 +5718,7 @@ pub fn cImport(
const o_sub_path = "o" ++ fs.path.sep_str ++ hex_digest;
if (comp.verbose_cimport) log.info("renaming {s} to {s}", .{ tmp_sub_path, o_sub_path });
- try fs.rename(cache_dir, tmp_sub_path, cache_dir, o_sub_path);
+ try renameTmpIntoCache(comp.dirs.local_cache, tmp_sub_path, o_sub_path);
break :digest .{ bin_digest, false };
};