authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-29 14:52:18-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-29 14:52:18-07:00
loge8edc4cf831229f9acfa07001f385bac7fec89b0
tree5b805419d994a355c33ff6da6130b8aeae85894a
parente69973beddcd8a42dbc7ebcfb96187e5a6f61b61

link: add force_undefined_symbols to cache hash

Follow-up for d5233ee85ce13cba3dd03e4c0c938cee193b9b19.

3 files changed, 3 insertions(+), 0 deletions(-)

src/Compilation.zig+1
...@@ -2516,6 +2516,7 @@ fn addNonIncrementalStuffToCacheManifest(comp: *Compilation, man: *Cache.Manifes...@@ -2516,6 +2516,7 @@ fn addNonIncrementalStuffToCacheManifest(comp: *Compilation, man: *Cache.Manifes
2516 man.hash.addOptionalBytes(comp.bin_file.options.soname);2516 man.hash.addOptionalBytes(comp.bin_file.options.soname);
2517 man.hash.addOptional(comp.bin_file.options.version);2517 man.hash.addOptional(comp.bin_file.options.version);
2518 link.hashAddSystemLibs(&man.hash, comp.bin_file.options.system_libs);2518 link.hashAddSystemLibs(&man.hash, comp.bin_file.options.system_libs);
2519 man.hash.addListOfBytes(comp.bin_file.options.force_undefined_symbols.keys());
2519 man.hash.addOptional(comp.bin_file.options.allow_shlib_undefined);2520 man.hash.addOptional(comp.bin_file.options.allow_shlib_undefined);
2520 man.hash.add(comp.bin_file.options.bind_global_refs_locally);2521 man.hash.add(comp.bin_file.options.bind_global_refs_locally);
2521 man.hash.add(comp.bin_file.options.tsan);2522 man.hash.add(comp.bin_file.options.tsan);
src/link/Coff.zig+1
...@@ -1032,6 +1032,7 @@ fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Node) !...@@ -1032,6 +1032,7 @@ fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Node) !
1032 }1032 }
1033 }1033 }
1034 link.hashAddSystemLibs(&man.hash, self.base.options.system_libs);1034 link.hashAddSystemLibs(&man.hash, self.base.options.system_libs);
1035 man.hash.addListOfBytes(self.base.options.force_undefined_symbols.keys());
1035 man.hash.addOptional(self.base.options.subsystem);1036 man.hash.addOptional(self.base.options.subsystem);
1036 man.hash.add(self.base.options.is_test);1037 man.hash.add(self.base.options.is_test);
1037 man.hash.add(self.base.options.tsaware);1038 man.hash.add(self.base.options.tsaware);
src/link/Elf.zig+1
...@@ -1349,6 +1349,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node) !v...@@ -1349,6 +1349,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node) !v
1349 man.hash.addOptionalBytes(self.base.options.soname);1349 man.hash.addOptionalBytes(self.base.options.soname);
1350 man.hash.addOptional(self.base.options.version);1350 man.hash.addOptional(self.base.options.version);
1351 link.hashAddSystemLibs(&man.hash, self.base.options.system_libs);1351 link.hashAddSystemLibs(&man.hash, self.base.options.system_libs);
1352 man.hash.addListOfBytes(self.base.options.force_undefined_symbols.keys());
1352 man.hash.add(allow_shlib_undefined);1353 man.hash.add(allow_shlib_undefined);
1353 man.hash.add(self.base.options.bind_global_refs_locally);1354 man.hash.add(self.base.options.bind_global_refs_locally);
1354 man.hash.add(self.base.options.compress_debug_sections);1355 man.hash.add(self.base.options.compress_debug_sections);