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.
This commit is contained in:
Andrew Kelley 2024-07-10 17:11:53 -07:00
parent a966eee090
commit 6fcb1897d2

View File

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