wasm-micro-runtime/samples/multi-module
Enrico Loparco 25ccc9f2d5
Avoid unused thread_id warning and recompile multi-module sample (#3033)
- Unused variable warning (when building in release mode):
```bash
wasm-micro-runtime/samples/wasi-threads/wasm-apps/no_pthread.c:44:9:
warning: variable 'thread_id' set but not used [-Wunused-but-set-variable]
    int thread_id;
```
- When using the multi-module example and changing the files in `wasm-apps`,
  they don't get recompiled when the sample is rebuilt. Adding `BUILD_ALWAYS`
  as it's done in other samples.
2024-01-17 08:06:02 +08:00
..
src Fix issues reported by Coverity (#2681) 2023-10-31 10:48:51 +08:00
wasm-apps Add WASI ABI compatibility check for multi-module (#913) 2021-12-29 11:04:36 +08:00
CMakeLists.txt Avoid unused thread_id warning and recompile multi-module sample (#3033) 2024-01-17 08:06:02 +08:00
README.md Get rid of compilation warnings and minor doc fix (#2839) 2023-11-30 08:49:58 +08:00

WAMR MULTI-MODUEL SAMPLE

WAMR supports multi-module in both interpreter mode and aot mode.

Multi-modules will determine the running mode based on the type of the main module.

$ mkdir build
$ cd build
$ cmake ..
$ make
$ # It will build multi_module runtime and 
$ # wasm file under the ./build .
$ # If you have built wamrc,
$ # aot file will also genrate.
$ ./multi_module mC.wasm
$ ...
$ ./multi_module mC.aot
$ ...