Skip to content

Commit e7d198e

Browse files
committed
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 fb3a441 commit e7d198e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/std/Build/Step/WriteFile.zig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)