Check for iwasm existence before trying to use it
This commit is contained in:
parent
5f32a74e1a
commit
410d0a38b7
@ -76,6 +76,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasm3" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "iwasm" ]; then
|
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "iwasm" ]; then
|
||||||
|
if command -v iwasm >/dev/null; then
|
||||||
if iwasm | grep -qi wasi >/dev/null 2>&1; then
|
if iwasm | grep -qi wasi >/dev/null 2>&1; then
|
||||||
if wamrc --version; then
|
if wamrc --version; then
|
||||||
wamrc -o "${1}.o" "$1" >/dev/null &&
|
wamrc -o "${1}.o" "$1" >/dev/null &&
|
||||||
@ -85,6 +86,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "iwasm" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wazero" ]; then
|
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wazero" ]; then
|
||||||
if command -v wazero >/dev/null; then
|
if command -v wazero >/dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user