After merging rust-lang/compiler-team#574 I got side-tracked on other work, but here is a description of how I configured my rustc environment in order to start adding and testing the new wasm32-wasi-threads target. Don't be surprised if I forgot a step or left some TODOs in place — there was some trial-and-error involved in getting to this point!
-
First, in order to get things working locally, I build a local copy of a WASI sysroot from wasi-libc:
make && make THREAD_MODEL=posix(sysroot/shareshould now contain files for both targets--wasm32-wasiandwasm32-wasi-threads) -
Then, in my rust project, I point my
config.tomlto look at the local WASI sysroot I just built; I do this for both targets (the existing one and the one we're about to add):[target.wasm32-wasi] wasi-root = ".../wasi-libc/sysroot" [target.wasm32-wasi-threads] wasi-root = ".../w