mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
wasm linker: reset function exports after flush
This commit is contained in:
parent
1afa6e260e
commit
1fe1d55c7b
1 changed files with 3 additions and 0 deletions
|
|
@ -3789,6 +3789,9 @@ pub fn flushModule(
|
|||
const globals_end_zcu: u32 = @intCast(wasm.globals.entries.len);
|
||||
defer wasm.globals.shrinkRetainingCapacity(globals_end_zcu);
|
||||
|
||||
const function_exports_end_zcu: u32 = @intCast(wasm.function_exports.entries.len);
|
||||
defer wasm.function_exports.shrinkRetainingCapacity(function_exports_end_zcu);
|
||||
|
||||
wasm.flush_buffer.clear();
|
||||
try wasm.flush_buffer.missing_exports.reinit(gpa, wasm.missing_exports.keys(), &.{});
|
||||
try wasm.flush_buffer.function_imports.reinit(gpa, wasm.function_imports.keys(), wasm.function_imports.values());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue