Skip to content

Commit b87c35d

Browse files
authored
wasm: add run support with wasm-micro-runtime/iwasm (#26417)
1 parent 82da42b commit b87c35d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vlib/v/builder/compile.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn (mut b Builder) run_compiled_executable_and_exit() {
9595
panic('Could not find `${node_basename}` in system path. Do you have Node.js installed?')
9696
}
9797
} else if b.pref.backend == .wasm {
98-
mut actual_run := ['wasmer', 'wasmtime', 'wavm', 'wasm3']
98+
mut actual_run := ['wasmer', 'wasmtime', 'wavm', 'wasm3', 'iwasm']
9999
mut actual_rf := ''
100100

101101
// -autofree bug
@@ -115,7 +115,7 @@ fn (mut b Builder) run_compiled_executable_and_exit() {
115115
}
116116

117117
if actual_rf == '' {
118-
panic('Could not find `wasmer`, `wasmtime`, `wavm`, or `wasm3` in system path. Do you have any installed?')
118+
panic('Could not find `wasmer`, `wasmtime`, `wavm`, `wasm3` or `ìwasm` in system path. Do you have any installed?')
119119
}
120120

121121
actual_rf

vlib/v/gen/wasm/tests/wasm_test.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const is_verbose = os.getenv('VTEST_SHOW_CMD') != ''
66

77
// TODO: some logic copy pasted from valgrind_test.v and compiler_test.v, move to a module
88
fn test_wasm() {
9-
mut runtimes := ['wasmer', 'wasmtime', 'wavm', 'wasm3']
9+
mut runtimes := ['wasmer', 'wasmtime', 'wavm', 'wasm3', 'iwasm']
1010
mut runtime_found := false
1111

1212
for runtime in runtimes {

0 commit comments

Comments
 (0)