Skip to content

Commit 7fe6247

Browse files
committed
coff: include version and module_definition_file in the hash
1 parent 3cacbea commit 7fe6247

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/link/Coff/lld.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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();

0 commit comments

Comments
 (0)