can’t use pthreads with WASI SDK (by default)
I want to be able to compile a C program that uses pthreads to Wasm with something like clang --target=wasm32-wasi-threads -o main.wasm main.c
, but that does not work. A work around is to specify the sysroot explicitly as --sysroot /usr/share/wasi-sysroot
. The problem is that the APKBUILD
for wasi-sdk
only adds a .cfg
file for the non‐threads target triple. The fix would (presumably) be to have it also add a similar .cfg
for the ...-threads
target triple too.