wasm-micro-runtime/samples/wasi-threads
liang.he d085d1ccf7
Keep fix the CMake compatibility issue (#4180)
```
CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
```
2025-04-15 12:51:19 +08:00
..
wasm-apps Avoid unused thread_id warning and recompile multi-module sample (#3033) 2024-01-17 08:06:02 +08:00
CMakeLists.txt Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
README.md Update wasi-libc version in CI and implement custom sync primitives (#2028) 2023-03-26 09:03:26 +08:00

"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