Commit 61d6215
authored
Enable
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.--gc-sections for WebAssembly targets (#7356)1 parent 98747d5 commit 61d6215
File tree
2 files changed
+33
-9
lines changed- Sources/Build/BuildDescription
- Tests/BuildTests
2 files changed
+33
-9
lines changedLines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 125 | | |
135 | 126 | | |
136 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
73 | 106 | | |
74 | 107 | | |
75 | 108 | | |
| |||
0 commit comments