Commit 6fcb1897d2

Andrew Kelley <andrew@ziglang.org>
2024-07-11 02:11:53
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 parent a966eee
Changed files (1)
lib
std
Build
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);