diff options
author | Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> | 2023-05-09 20:32:19 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-05-11 14:42:30 +0000 |
commit | dc076eaf2e64f51cca986a4a340a51befd7b6250 (patch) | |
tree | e4693d531a631eaa5606c7e30a2b2ced883e2bfd /misc | |
parent | 6b2ad9ef50a279569e1146dcc8593badae2dbcd4 (diff) | |
download | go-dc076eaf2e64f51cca986a4a340a51befd7b6250.tar.gz go-dc076eaf2e64f51cca986a4a340a51befd7b6250.zip |
misc/wasm: add wasmedge to wasip1 script
The wasmedge runtime will be used to test our wasip1
implementation against the WASI runtime from wasmedge.org.
For #60097
Change-Id: Ib0e886de46240b4d43d02ec8a7bc7cea0730c162
Reviewed-on: https://go-review.googlesource.com/c/go/+/494120
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.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 55917eae88..72228d0501 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 + "wasmedge") + exec wasmedge --dir=/ --env PWD="$PWD" "$1" "${@:2}" + ;; "wasmer") exec wasmer run --dir=/ --env PWD="$PWD" "$1" -- "${@:2}" ;; |