You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable --gc-sections for WebAssembly targets (#7356)
Enable `--gc-sections` back for WebAssembly targets
### Motivation:
We disabled `--gc-sections` for Wasm targets due to a lack of features
in the object file format. However, we recently added the missing piece
in wasm object file format, so we no longer have any reason to disable
it.
### Modifications:
This effectively reverts 3a366cc. After
swiftlang/swift#71768, we don't have any reason to
disable `--gc-sections` for WebAssembly targets. Note that the new wasm
segment flags are only supported by the latest LLVM and wasm-ld, but we
can assume that toolchains or Swift SDKs for WebAssembly have wasm-ld
built from the latest LLVM.
### Result:
Allow dead code stripping at link time for WebAssembly targets.
0 commit comments