diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-20 13:04:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 13:04:49 -0700 |
| commit | b5f3d121644031cf644271296e1ee5dbf363abeb (patch) | |
| tree | 1a6aa7a7ca974b2d5e24bddf6e2f3b9f7c0040c6 /src/Compilation.zig | |
| parent | ef3a746da1a85a8b4a653cb78e0464c71d35b64e (diff) | |
| parent | 645ad1ef72a09785fe5d7b33f1f9f2394bf52f57 (diff) | |
| download | zig-b5f3d121644031cf644271296e1ee5dbf363abeb.tar.gz zig-b5f3d121644031cf644271296e1ee5dbf363abeb.zip | |
Merge pull request #20688 from ziglang/incr-test
introduce a new tool for testing incremental compilation
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a05e54ee17..98d2fd552a 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2105,7 +2105,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void { const tmp_artifact_directory = d: { const s = std.fs.path.sep_str; tmp_dir_rand_int = std.crypto.random.int(u64); - const tmp_dir_sub_path = "tmp" ++ s ++ Package.Manifest.hex64(tmp_dir_rand_int); + const tmp_dir_sub_path = "tmp" ++ s ++ std.fmt.hex(tmp_dir_rand_int); const path = try comp.local_cache_directory.join(gpa, &.{tmp_dir_sub_path}); errdefer gpa.free(path); @@ -2297,7 +2297,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void { } else unreachable; const s = std.fs.path.sep_str; - const tmp_dir_sub_path = "tmp" ++ s ++ Package.Manifest.hex64(tmp_dir_rand_int); + const tmp_dir_sub_path = "tmp" ++ s ++ std.fmt.hex(tmp_dir_rand_int); const o_sub_path = "o" ++ s ++ digest; // Work around windows `AccessDenied` if any files within this |
