mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-26 19:01:17 +00:00
- 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.
|
||
|---|---|---|
| .. | ||
| src | ||
| wasm-apps | ||
| CMakeLists.txt | ||
| README.md | ||
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
$ ...