mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-09-25 04:09:58 +03:00
Add support for zwasm
This commit is contained in:
@@ -89,6 +89,12 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wazero" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "zwasm" ]; then
|
||||||
|
if command -v zwasm >/dev/null; then
|
||||||
|
zwasm run --dir "$(pwd)::/" --allow-read --allow-write --allow-path "$1" && exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer-js" ]; then
|
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer-js" ]; then
|
||||||
if command -v wasmer-js >/dev/null; then
|
if command -v wasmer-js >/dev/null; then
|
||||||
wasmer-js run "$1" --dir=. && exit 0
|
wasmer-js run "$1" --dir=. && exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user