diff options
author | Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> | 2023-05-08 22:21:19 -0700 |
---|---|---|
committer | Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> | 2023-05-09 16:19:36 +0000 |
commit | 5751939d1161456f380efbb5c5d0a8962006eea4 (patch) | |
tree | ba3f8ebc047e21f38caa482ed21c5b0d71189598 /misc | |
parent | 134c9b2b171be3515ecef1787ef25435908c17c0 (diff) | |
download | go-5751939d1161456f380efbb5c5d0a8962006eea4.tar.gz go-5751939d1161456f380efbb5c5d0a8962006eea4.zip |
misc/wasm: add wasmer to wasip1 script
The wasmer runtime will be used to test our wasip1
implementation against the WASI runtime from wasmer.io.
For #59907
Change-Id: Ie7e48c39e03075815ddca46d996b6ec87009b12a
Reviewed-on: https://go-review.googlesource.com/c/go/+/493775
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/wasm/go_wasip1_wasm_exec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/wasm/go_wasip1_wasm_exec b/misc/wasm/go_wasip1_wasm_exec index 3e1fc62156..55917eae88 100755 --- a/misc/wasm/go_wasip1_wasm_exec +++ b/misc/wasm/go_wasip1_wasm_exec @@ -4,6 +4,9 @@ # license that can be found in the LICENSE file. case "$GOWASIRUNTIME" in + "wasmer") + exec wasmer run --dir=/ --env PWD="$PWD" "$1" -- "${@:2}" + ;; "wasmtime") exec wasmtime run --dir=/ --env PWD="$PWD" --max-wasm-stack 1048576 "$1" -- "${@:2}" ;; |