diff --git a/docker/test/entrypoint.sh b/docker/test/entrypoint.sh index 6589b22..25cdb7d 100755 --- a/docker/test/entrypoint.sh +++ b/docker/test/entrypoint.sh @@ -556,10 +556,17 @@ EOF *-wasi*) [[ -f "${toolchain_dir}/bin/wasmtime" ]] || cp "$(type -P "wasmtime")" "${toolchain_dir}/bin" runner="${RUST_TARGET}-runner" + wasi_options='' + case "${RUST_TARGET}" in + *-threads) wasi_options+=' -S threads=y' + esac + case "${RUST_TARGET}" in + *-wasip2*) wasi_options+=' -S preview2=y' + esac cat >"${toolchain_dir}/bin/${runner}" <