Add support for WAVM as a WebAssembly runtime

This commit is contained in:
Frank Denis
2019-10-22 08:59:24 +02:00
parent 9e22cb4ad2
commit b40674e29a
+6
View File
@@ -2,6 +2,12 @@
MAX_MEMORY_TESTS="67108864"
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wavm" ]; then
if command -v wavm >/dev/null; then
wavm run --abi=wasi "$1" && exit 0
fi
fi
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmtime" ]; then
if command -v wasmtime >/dev/null; then
wasmtime -o --dir=. "$1" && exit 0