You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's not currently any example at this time, no. Emscripten's toolchain has Emscripten-specific imports which will require you to implement if you're running outside of the Emscripten environment. I'm no expert on those myself, so I'm not sure what emscripten_check_blocking_allowed should do for example. My guess is you probably want to use a wasi-sdk toolchain instead to run outside of a browser.
In such a situation the wasip1-threads target can generate binaries but you'll have to build WASI threading yourself. Wasmtime's C API, currently intentionally, doesn't support wasi-threads.
emcc panda.cpp -o panda.wasm -pthread ?
cause i keep getting
wasmtime panda.wasm --enable-pthreads
Error: failed to run main module
panda.wasm
Caused by:
0: failed to instantiate "panda.wasm"
1: unknown import:
env::emscripten_check_blocking_allowed
has not been definedThe text was updated successfully, but these errors were encountered: