mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
11 lines
172 B
Plaintext
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
|