Commit c535723
authored
Merge pull request swiftlang#83208 from MaxDesiatov/wasm-corelibs-host-compiler
wasmswiftsdk.py: consistently apply `build_runtime_with_host_compiler`
Following up on swiftlang#83134 swiftlang#82949 swiftlang#82946 swiftlang#82944.
With these changes I'm able to quickly build and test only Wasm Swift SDK without rebuilding the whole toolchain when latest development snapshot is installed, using this invocation:
```
./swift/utils/build-script --skip-build-benchmarks --release --skip-early-swift-driver \
--skip-build-lldb --skip-build-cmark --skip-build-llvm --skip-build-swift \
--build-runtime-with-host-compiler --build-wasm-stdlib
```
Timing on M4 MacBook Pro:
```
--- Build Script Analyzer ---
Build Percentage Build Duration (sec) Build Phase
================ ==================== ===========
43.6% 257.75 Building wasmswiftsdk
20.6% 121.91 Building wasmthreadsstdlib
20.6% 121.78 Building wasmstdlib
5.4% 32.03 Building wasmllvmruntimelibs
3.6% 21.39 Running tests for wasmthreadsstdlib
3.5% 20.91 Running tests for wasmstdlib
2.7% 15.74 Building wasilibc
0.0% 0.04 macosx-arm64-extractsymbols
0.0% 0.04 macosx-arm64-package
0.0% 0.03 merged-hosts-lipo-core
0.0% 0.03 merged-hosts-lipo
Total Duration: 591.65 seconds (9m 51s)
```File tree
1 file changed
+12
-11
lines changed- utils/swift_build_support/swift_build_support/products
1 file changed
+12
-11
lines changedLines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | | - | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
0 commit comments