From 7fe62475181489c200d9248b43b983ae41acf985 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Wed, 4 Jan 2023 21:45:00 -0500 Subject: [PATCH] coff: include version and module_definition_file in the hash --- src/link/Coff/lld.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/link/Coff/lld.zig b/src/link/Coff/lld.zig index da09505e90..7702062eae 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -98,6 +98,8 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod // strip does not need to go into the linker hash because it is part of the hash namespace man.hash.addOptional(self.base.options.major_subsystem_version); man.hash.addOptional(self.base.options.minor_subsystem_version); + man.hash.addOptional(self.base.options.version); + man.hash.addOptionalBytes(self.base.options.module_definition_file); // We don't actually care whether it's a cache hit or miss; we just need the digest and the lock. _ = try man.hit();