mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -07:00
Spaces
This commit is contained in:
parent
ff88392d8c
commit
fbe5d52a81
@ -5,11 +5,13 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmtime" ]; then
|
|||||||
wasmtime -o --dir=. "$1" && exit 0
|
wasmtime -o --dir=. "$1" && exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer" ]; then
|
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer" ]; then
|
||||||
if command -v wasmer >/dev/null; then
|
if command -v wasmer >/dev/null; then
|
||||||
wasmer run "$1" --backend "${WASMER_BACKEND:-cranelift}" --dir=. && exit 0
|
wasmer run "$1" --backend "${WASMER_BACKEND:-cranelift}" --dir=. && exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then
|
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then
|
||||||
if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then
|
if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then
|
||||||
lucetc-wasi \
|
lucetc-wasi \
|
||||||
@ -18,5 +20,6 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then
|
|||||||
lucet-wasi --dir=.:. "$1.so" && exit 0
|
lucet-wasi --dir=.:. "$1.so" && exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "WebAssembly runtime failed" >&2
|
echo "WebAssembly runtime failed" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user