mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add support for WAVM as a WebAssembly runtime
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user