Skip to content

wasmswiftsdk.py: consistently apply build_runtime_with_host_compiler #83208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2025

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jul 21, 2025

Following up on #83134 #82949 #82946 #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)

@MaxDesiatov MaxDesiatov added Foundation build-script Area → utils: The build script python Flag: Python source code XCTest Flag: Involves XCTest WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support labels Jul 21, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov force-pushed the wasm-corelibs-host-compiler branch from c022835 to 4853338 Compare July 21, 2025 15:38
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov requested review from bnbarham and glessard July 21, 2025 15:57
@bnbarham
Copy link
Contributor

@swift-ci please clean test Windows platform

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov enabled auto-merge July 22, 2025 10:15
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit c535723 into swiftlang:main Jul 22, 2025
3 checks passed
@MaxDesiatov MaxDesiatov deleted the wasm-corelibs-host-compiler branch July 22, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-script Area → utils: The build script Foundation python Flag: Python source code WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly XCTest Flag: Involves XCTest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants