From dc076eaf2e64f51cca986a4a340a51befd7b6250 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst-Satzkorn Date: Tue, 9 May 2023 20:32:19 -0700 Subject: [PATCH] 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 TryBot-Result: Gopher Robot Auto-Submit: Johan Brandhorst-Satzkorn Reviewed-by: Bryan Mills Run-TryBot: Johan Brandhorst-Satzkorn --- misc/wasm/go_wasip1_wasm_exec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/wasm/go_wasip1_wasm_exec b/misc/wasm/go_wasip1_wasm_exec index 55917eae88f7fe..72228d0501270d 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}" ;;