-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add support for wasm32-wasi-threads #15484
Comments
If WebAssembly supports threads now, we can start by changing this logic: Lines 210 to 212 in aa3405a
Are WebAssembly threads supported in browsers? |
It looks like Wasm threads have been supported in major browsers for a year or two now. Be aware, there are two Wasm threading specs to be aware of: Threads and Atomics (which is in phase3/5 for the core Wasm spec), and wasi-threads (which is phase 1/5 for the WASI spec). What's the difference? wasi-threads intro explains:
Regarding support for wasi-threads: |
See WebAssembly/wasi-sdk#274
I tried building something that requires cmake and pthreads and it failed to compile with
zig;cc
as the compiler and wasm32-wasi. If I try to use thewasm32-wasi-threads
target I get this:The text was updated successfully, but these errors were encountered: