authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-11 16:24:48-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-12 00:14:08-07:00
log818f9cb5a07bec1273d3fc1ecb54e7189a9e6106
tree0273a7f8ec3b27cf9ed175151af984bff077dee5
parent768cb7e406fe26711167cbb2d67efdc10f830fdc

std.Build.Step.ObjCopy: remove random bytes from cache hash

The cache hash already has the zig version in there, so it's not really needed.

1 files changed, 0 insertions(+), 4 deletions(-)

lib/std/Build/Step/ObjCopy.zig-4
......@@ -98,10 +98,6 @@ fn make(step: *Step, prog_node: std.Progress.Node) !void {
9898 var man = b.graph.cache.obtain();
9999 defer man.deinit();
100100
101 // Random bytes to make ObjCopy unique. Refresh this with new random
102 // bytes when ObjCopy implementation is modified incompatibly.
103 man.hash.add(@as(u32, 0xe18b7baf));
104
105101 const full_src_path = objcopy.input_file.getPath2(b, step);
106102 _ = try man.addFile(full_src_path, null);
107103 man.hash.addOptionalBytes(objcopy.only_section);