mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
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:
parent
a966eee090
commit
6fcb1897d2
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user