authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-10 17:11:53-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-12 00:14:08-07:00
log6fcb1897d263130b5ff7a25dd12f027bddd75b2f
tree8e19d824bcb4451dd7903defe7711e1cfab48eac
parenta966eee090d55c7d61484333af675c80115bf188

std.Build.Step.WriteFile: remove random bytes from cache hash

The cache hash already has the zig version in there, so it's not really needed.

1 files changed, 0 insertions(+), 5 deletions(-)

lib/std/Build/Step/WriteFile.zig-5
......@@ -189,11 +189,6 @@ fn make(step: *Step, prog_node: std.Progress.Node) !void {
189189 var man = b.graph.cache.obtain();
190190 defer man.deinit();
191191
192 // Random bytes to make WriteFile unique. Refresh this with
193 // new random bytes when WriteFile implementation is modified
194 // in a non-backwards-compatible way.
195 man.hash.add(@as(u32, 0xc2a287d0));
196
197192 for (write_file.files.items) |file| {
198193 man.hash.addBytes(file.sub_path);
199194