Skip to content

build-script: allow --test-wasm-stdlib without --build-wasm-stdlib #83135

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jul 17, 2025

This allows testing Wasm stdlib without fully rebuilding WASI sysroot and stdlib, while changes to stdlib itself are still detected by ninja as dependencies and are built incrementally, which is great for local builds.

This allows testing Wasm stdlib without rebuilding WASI sysroot and stdlib, while some changes are still detected by ninja as dependencies and are rebuilt, which is great for local incremental builds.
@MaxDesiatov MaxDesiatov added test suite Area: test suite build-script Area → utils: The build script WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support labels Jul 17, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@kateinoigakukun
Copy link
Member

I'd like to suggest we consider the root cause approach here.

The underlying problem appears to be overly conservative incremental builds in wasi-libc that trigger full stdlib rebuilds. There's actually a fix for this root issue in wasi-libc: WebAssembly/wasi-libc@eadb436

While this approach could work as a temporary solution until the wasi-libc fix is released, I wonder if we might first explore cherry-picking that wasi-libc patch locally? This would allow us to maintain consistency with other products in build-script without hacks.

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 test suite Area: test suite WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants