aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/WriteFile.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-10 17:11:53 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-07-12 00:14:08 -0700
commit6fcb1897d263130b5ff7a25dd12f027bddd75b2f (patch)
tree8e19d824bcb4451dd7903defe7711e1cfab48eac /lib/std/Build/Step/WriteFile.zig
parenta966eee090d55c7d61484333af675c80115bf188 (diff)
downloadzig-6fcb1897d263130b5ff7a25dd12f027bddd75b2f.tar.gz
zig-6fcb1897d263130b5ff7a25dd12f027bddd75b2f.zip
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.
Diffstat (limited to 'lib/std/Build/Step/WriteFile.zig')
-rw-r--r--lib/std/Build/Step/WriteFile.zig5
1 files changed, 0 insertions, 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);