authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-04 21:45:00-05:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-04 21:45:06-05:00
log7fe62475181489c200d9248b43b983ae41acf985
treecfdc7516e1629680dbaaadaa8818e06cb3082f67
parent3cacbea95b2052f0dffd0a412f5e99ff61397826

coff: include version and module_definition_file in the hash


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

src/link/Coff/lld.zig+2
......@@ -98,6 +98,8 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod
9898 // strip does not need to go into the linker hash because it is part of the hash namespace
9999 man.hash.addOptional(self.base.options.major_subsystem_version);
100100 man.hash.addOptional(self.base.options.minor_subsystem_version);
101 man.hash.addOptional(self.base.options.version);
102 man.hash.addOptionalBytes(self.base.options.module_definition_file);
101103
102104 // We don't actually care whether it's a cache hit or miss; we just need the digest and the lock.
103105 _ = try man.hit();