From f9809af698af144f9b747347d9a5a8acb976c117 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 25 Sep 2024 20:14:28 +0900 Subject: [PATCH] runtimes/native/README.md: document WASM_BACKEND option --- runtimes/native/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/runtimes/native/README.md b/runtimes/native/README.md index ce667dfe..a55d5646 100644 --- a/runtimes/native/README.md +++ b/runtimes/native/README.md @@ -19,6 +19,18 @@ cmake -B build cmake --build build ``` +By default, it uses [wasm3] as a WebAssembly runtime. +Alternatively, you can use [toywasm] instead by setting +the `WASM_BACKEND` cmake option: + +```shell +cmake -B build -DWASM_BACKEND=toywasm +cmake --build build +``` + +[wasm3]: https://github.com/wasm3/wasm3 +[toywasm]: https://github.com/yamt/toywasm + Running: ```shell