From 6fcb1897d263130b5ff7a25dd12f027bddd75b2f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 10 Jul 2024 17:11:53 -0700 Subject: [PATCH] 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. --- lib/std/Build/Step/WriteFile.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/std/Build/Step/WriteFile.zig b/lib/std/Build/Step/WriteFile.zig index 6c0770e458..c1488a23d2 100644 --- a/lib/std/Build/Step/WriteFile.zig +++ b/lib/std/Build/Step/WriteFile.zig @@ -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);