From: Johan Brandhorst-Satzkorn Date: Wed, 10 May 2023 03:32:19 +0000 (-0700) Subject: misc/wasm: add wasmedge to wasip1 script X-Git-Tag: go1.21rc1~588 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dc076eaf2e64f51cca986a4a340a51befd7b6250;p=gostls13.git 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 --- 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}" ;;