diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index af64884c..423a7d43 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -12,7 +12,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then lucetc-wasi \ --reserved-size "${MAX_MEMORY_TESTS}" \ - -o "${1}.so" --opt-level fast "$1" && + -o "${1}.so" --opt-level 2 "$1" && lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS}" "${1}.so" && rm -f "${1}.so" && exit 0 fi