-
Notifications
You must be signed in to change notification settings - Fork 10.5k
wasm-run.py: consistent wasmkit
path with build_runtime_with_host_compiler
#83134
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
wasm-run.py: consistent wasmkit
path with build_runtime_with_host_compiler
#83134
Conversation
…host_compiler` When passing `--build-runtime-with-host-compiler` there's no such executable `wasmkit-cli` in the host toolchain, where it's named `wasmkit` when installed. Let's make that consistent to make it work in both cases.
@swift-ci smoke test |
@swift-ci smoke test macos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to change wasmkit.py to place the executable in build dir with the updated name as well?
IIUC it still worked on CI because it picked up |
@swift-ci smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@swift-ci smoke test macos |
wasmswiftsdk.py: consistently apply `build_runtime_with_host_compiler` 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) ```
When passing
--build-runtime-with-host-compiler
there's no such executablewasmkit-cli
in the host toolchain, where it's namedwasmkit
when installed. Let's make that consistent to make it work in both cases.