authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-23 22:40:09-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-29 23:50:19-07:00
log20e7cc8d88dc1490d8635db0e6f96fff194763e6
tree11d86d8f58a120cf3e832360cc05a2ab4c09ae50
parentad4887d1b8f4d439f154df15e219c98676b5334d

std.Build.Cache: bump max number of prefixes


2 files changed, 2 insertions(+), 2 deletions(-)

lib/compiler/Maker.zig+1-1
...@@ -566,9 +566,9 @@ pub fn main(init: process.Init.Minimal) !void {...@@ -566,9 +566,9 @@ pub fn main(init: process.Init.Minimal) !void {
566 };566 };
567 graph.cache.addPrefix(.{ .path = null, .handle = cwd });567 graph.cache.addPrefix(.{ .path = null, .handle = cwd });
568 graph.cache.addPrefix(graph.build_root_directory);568 graph.cache.addPrefix(graph.build_root_directory);
569 graph.cache.addPrefix(zig_lib_directory);
570 graph.cache.addPrefix(graph.local_cache_root);569 graph.cache.addPrefix(graph.local_cache_root);
571 graph.cache.addPrefix(global_cache_directory);570 graph.cache.addPrefix(global_cache_directory);
571 graph.cache.addPrefix(zig_lib_directory);
572 graph.cache.hash.addBytes(builtin.zig_version_string);572 graph.cache.hash.addBytes(builtin.zig_version_string);
573573
574 const NO_COLOR = EnvVar.NO_COLOR.isSet(&graph.environ_map);574 const NO_COLOR = EnvVar.NO_COLOR.isSet(&graph.environ_map);
lib/std/Build/Cache.zig+1-1
...@@ -28,7 +28,7 @@ mutex: Io.Mutex = .init,...@@ -28,7 +28,7 @@ mutex: Io.Mutex = .init,
28/// are replaced with single-character indicators. This is not to save28/// are replaced with single-character indicators. This is not to save
29/// space but to eliminate absolute file paths. This improves portability29/// space but to eliminate absolute file paths. This improves portability
30/// and usefulness of the cache for advanced use cases.30/// and usefulness of the cache for advanced use cases.
31prefixes_buffer: [4]Directory = undefined,31prefixes_buffer: [5]Directory = undefined,
32prefixes_len: usize = 0,32prefixes_len: usize = 0,
33/// Used to identify prefixes. References external memory.33/// Used to identify prefixes. References external memory.
34cwd: []const u8,34cwd: []const u8,