mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-03 18:26:18 +00:00
![]() Raise wasi-sdk to 25 and wabt to 1.0.37. It includes - Refactor CI workflow to install WASI-SDK and WABT from a composite action - Use ExternalProject to bring wasm-apps for few samples. file/ wasi-threads/ - Refactor sample build and test steps in SGX compilation workflow for improved clarity and efficiency (workaround) Add CMake support for EMSCRIPTEN and WAMRC, update module paths |
||
---|---|---|
.. | ||
wasm-apps | ||
CMakeLists.txt | ||
README.md |
"WASI threads" sample introduction
To run the sample, wasi-sdk
>= 20 is required.
Build and run the samples
$ mkdir build
$ cd build
$ cmake ..
$ make
...
$ ./iwasm wasm-apps/no_pthread.wasm
Run samples in AOT mode
$ ../../../wamr-compiler/build/wamrc \
--enable-multi-thread \
-o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
$ ./iwasm wasm-apps/no_pthread.aot