From 818f9cb5a07bec1273d3fc1ecb54e7189a9e6106 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 11 Jul 2024 16:24:48 -0700 Subject: [PATCH] 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. --- lib/std/Build/Step/ObjCopy.zig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/std/Build/Step/ObjCopy.zig b/lib/std/Build/Step/ObjCopy.zig index 908341aefb..d314550f60 100644 --- a/lib/std/Build/Step/ObjCopy.zig +++ b/lib/std/Build/Step/ObjCopy.zig @@ -98,10 +98,6 @@ fn make(step: *Step, prog_node: std.Progress.Node) !void { var man = b.graph.cache.obtain(); defer man.deinit(); - // Random bytes to make ObjCopy unique. Refresh this with new random - // bytes when ObjCopy implementation is modified incompatibly. - man.hash.add(@as(u32, 0xe18b7baf)); - const full_src_path = objcopy.input_file.getPath2(b, step); _ = try man.addFile(full_src_path, null); man.hash.addOptionalBytes(objcopy.only_section);