Files
swift-mirror/stdlib/public/Resources/wasi/static-executable-args.lnk
Yuta Saito f3f13a2637 [wasm] Enable --gc-sections for WebAssembly by default
This change enables the `--gc-sections` linker flag for WebAssembly
targets by default. This flag has been disabled because it did not
respect `llvm.used` and it caused stripping `swift5` metadata sections
even though they were used through encapsulation symbols (a.k.a `__start`/`__stop`).

The issue has been fixed in the LLVM side (ba3c1f9ce3)
by adding new segment flags to the WebAssembly object file format.
2024-02-21 02:13:01 +00:00

11 lines
172 B
Plaintext

-static
-lswiftSwiftOnoneSupport
-ldl
-lstdc++
-lm
-lwasi-emulated-mman
-lwasi-emulated-signal
-lwasi-emulated-process-clocks
-Xlinker --error-limit=0
-Xlinker --threads=1