From 22117c5bea950893b0edbf164782b1373f4de37e Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Sun, 29 Sep 2024 15:51:46 +0800 Subject: [PATCH] chore: adapt wasmtime 14 CLI parsing changes --- scripts/run_bench_wasm.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/run_bench_wasm.sh b/scripts/run_bench_wasm.sh index a36ae83f..008b6175 100755 --- a/scripts/run_bench_wasm.sh +++ b/scripts/run_bench_wasm.sh @@ -27,5 +27,10 @@ benches=( ) for bench in ${benches[@]}; do - $RUNTIME run --dir=. $REPO_ROOT/target/bench-wasm/$bench.wasm -- --bench + if [[ "$RUNTIME" == "wasmtime" ]]; then + # https://github.com/bytecodealliance/wasmtime/issues/7384 + $RUNTIME run --dir=. -- $REPO_ROOT/target/bench-wasm/$bench.wasm --bench + else + $RUNTIME run --dir=. $REPO_ROOT/target/bench-wasm/$bench.wasm -- --bench + fi done