aboutsummaryrefslogtreecommitdiff
path: root/misc/wasm/go_wasip1_wasm_exec
diff options
context:
space:
mode:
Diffstat (limited to 'misc/wasm/go_wasip1_wasm_exec')
-rwxr-xr-xmisc/wasm/go_wasip1_wasm_exec3
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}"
;;