From 65d56b107785bdde006111829977a91097dcde2d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 19 Dec 2022 12:34:32 +0100 Subject: [PATCH] iwasm requires precompilation to get decent speed --- test/default/wasi-test-wrapper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index 112f8824..d0f59299 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -77,7 +77,12 @@ fi if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "iwasm" ]; then if iwasm | grep -qi wasi >/dev/null 2>&1; then - iwasm "$1" && exit 0 + if wamrc --version; then + wamrc -o "${1}.o" "$1" >/dev/null && + iwasm --dir=. "${1}.o" && exit 0 + else + iwasm --dir=. "$1" && exit 0 + fi fi fi