mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
wasm-linker: support --no-gc-sections
By default we garbage-collect sections for Wasm to reduce size, as well as finish linking quicker (as we have fewer things to do). However, when the user specifies `--no-gc-sections` we ensure all resolved symbols get marked and therefore do not get garbage collected. This is supported in both incremental-mode and traditional linking.
This commit is contained in:
parent
4be3cd2754
commit
596d1cd5a8
2 changed files with 59 additions and 36 deletions
Loading…
Add table
Add a link
Reference in a new issue