Skip to content

Fix thread sources for legacy WASI target - #879

Open
chenrui333 wants to merge 1 commit into
WebAssembly:mainfrom
chenrui333:fix-legacy-wasi-threads
Open

Fix thread sources for legacy WASI target#879
chenrui333 wants to merge 1 commit into
WebAssembly:mainfrom
chenrui333:fix-legacy-wasi-threads

Conversation

@chenrui333

Copy link
Copy Markdown

The CMake thread-source selection recognizes wasm32-wasip1-threads but misses its legacy alias wasm32-wasi-threads. The latter receives the single-threaded stubs even though the rest of the build enables thread support.

Accept both spellings so the legacy target includes the real pthread and futex implementation. Reproduced the missing-symbol failure with CHECK_SYMBOLS=ON; both target spellings pass the symbol check after this change using Clang 23 on macOS arm64.

Found while building wasi-sdk-34 for Homebrew/homebrew-core#301216.

Signed-off-by: Rui Chen <rui@chenrui.dev>
@alexcrichton

Copy link
Copy Markdown
Collaborator

Thanks! While this works though, could the wasm32-wasi and wasm32-wasi-threads targets get removed? We've removed them from the source intentionally, and it seems like it would be best to do that everywhere to avoid confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants