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 /lib/std/Build | |
| 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 'lib/std/Build')
| -rw-r--r-- | lib/std/Build/Step/Options.zig | 2 | ||||
| -rw-r--r-- | lib/std/Build/Step/Run.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build/Step/Options.zig b/lib/std/Build/Step/Options.zig index 7c872db170..6131912b1b 100644 --- a/lib/std/Build/Step/Options.zig +++ b/lib/std/Build/Step/Options.zig @@ -457,7 +457,7 @@ fn make(step: *Step, make_options: Step.MakeOptions) !void { const rand_int = std.crypto.random.int(u64); const tmp_sub_path = "tmp" ++ fs.path.sep_str ++ - std.Build.hex64(rand_int) ++ fs.path.sep_str ++ + std.fmt.hex(rand_int) ++ fs.path.sep_str ++ basename; const tmp_sub_path_dirname = fs.path.dirname(tmp_sub_path).?; diff --git a/lib/std/Build/Step/Run.zig b/lib/std/Build/Step/Run.zig index d79d4647b1..0712ce8083 100644 --- a/lib/std/Build/Step/Run.zig +++ b/lib/std/Build/Step/Run.zig @@ -743,7 +743,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void { // We do not know the final output paths yet, use temp paths to run the command. const rand_int = std.crypto.random.int(u64); - const tmp_dir_path = "tmp" ++ fs.path.sep_str ++ std.Build.hex64(rand_int); + const tmp_dir_path = "tmp" ++ fs.path.sep_str ++ std.fmt.hex(rand_int); for (output_placeholders.items) |placeholder| { const output_components = .{ tmp_dir_path, placeholder.output.basename }; |
