From f4d328e2ac0583336085f647df18c7430b7948be Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 13 Aug 2025 15:04:25 -0700 Subject: [PATCH] Compilation: use renameTmpIntoCache solves several problems with this pattern --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; };