authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-07-01 13:13:09-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-07-01 13:13:09-07:00
logfdf8e6df2becae5ffd8076cb3fb85d7b639c2cb8
treeea0a00ce1950577552c6f35740c5bf099773bbe7
parent69d65ae472e725726d3c33f23c486d2c871ef8c7

Maker: simplify config_tmp_path expression


1 files changed, 1 insertions(+), 3 deletions(-)

lib/compiler/Maker.zig+1-3
......@@ -1250,11 +1250,9 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig {
12501250 }) });
12511251 }
12521252
1253 const rand_int = randInt(io, u64);
1254 const tmp_dir_sub_path = "tmp" ++ Dir.path.sep_str ++ std.fmt.hex(rand_int);
12551253 const config_tmp_path: Path = .{
12561254 .root_dir = graph.local_cache_root,
1257 .sub_path = try arena.dupe(u8, tmp_dir_sub_path),
1255 .sub_path = try arena.print("tmp" ++ Dir.path.sep_str ++ "{x}", .{randInt(io, u64)}),
12581256 };
12591257 const config_tmp_file: Io.File = try config_tmp_path.root_dir.handle.createFile(
12601258 io,