Skip to content

Create a separate sysroot for coop threads - #647

Merged
alexcrichton merged 2 commits into
WebAssembly:mainfrom
alexcrichton:threads-sysroot
Jul 30, 2026
Merged

Create a separate sysroot for coop threads#647
alexcrichton merged 2 commits into
WebAssembly:mainfrom
alexcrichton:threads-sysroot

Conversation

@alexcrichton

Copy link
Copy Markdown
Collaborator

This commit creates a separate sysroot for coop threads for the wasm32-wasip3 target. This is explicitly labeled with experimental in the name and isn't passed anywhere by default. The intention is to assist with testing of this sysroot by making it reasonably easy to use it and test that everything works. Using it requires passing --sysroot to the folder generated here, and a simple "hello world" with threads completes locally. This necessitated a minor update to an LLVM patch which reflects the updated state of a PR upstream.

This commit creates a separate sysroot for coop threads for the
`wasm32-wasip3` target. This is explicitly labeled with `experimental`
in the name and isn't passed anywhere by default. The intention is to
assist with testing of this sysroot by making it reasonably easy to use
it and test that everything works. Using it requires passing `--sysroot`
to the folder generated here, and a simple "hello world" with threads
completes locally. This necessitated a minor update to an LLVM patch
which reflects the updated state of a PR upstream.
@alexcrichton
alexcrichton requested a review from dicej July 29, 2026 18:25
@alexcrichton
alexcrichton enabled auto-merge (squash) July 29, 2026 19:07
@alexcrichton
alexcrichton merged commit 4ed6482 into WebAssembly:main Jul 30, 2026
23 of 24 checks passed
@alexcrichton
alexcrichton deleted the threads-sysroot branch July 30, 2026 15:09
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