add missing export symbol names to whole mode wasm cache hash

Fixes false positive cache hit.
This commit is contained in:
Andrew Kelley 2024-02-28 19:08:28 -07:00
parent f5aad47287
commit 30688f33a4

View File

@ -2584,6 +2584,10 @@ fn addNonIncrementalStuffToCacheManifest(
man.hash.addOptional(opts.initial_memory);
man.hash.addOptional(opts.max_memory);
man.hash.addOptional(opts.global_base);
man.hash.add(opts.export_symbol_names.len);
for (opts.export_symbol_names) |symbol_name| {
man.hash.addBytes(symbol_name);
}
// Mach-O specific stuff
try link.File.MachO.hashAddFrameworks(man, opts.frameworks);