mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add LLVM, move lucet down
This commit is contained in:
@@ -39,15 +39,11 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "iwasm" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then
|
||||
if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then
|
||||
lucetc-wasi \
|
||||
--target-cpu native \
|
||||
--reserved-size "4GiB" \
|
||||
--opt-level speed \
|
||||
"$1" -o "${1}.so" &&
|
||||
lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS}" "${1}.so" &&
|
||||
rm -f "${1}.so" && exit 0
|
||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "ssvm" ]; then
|
||||
if command -v ssvmc >/dev/null && command -v ssvm >/dev/null; then
|
||||
ssvmc "$1" "${1}.so" &&
|
||||
ssvm --dir=.:. "${1}.so" &&
|
||||
rm -f "${1}.so"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -73,5 +69,17 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer-js" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then
|
||||
if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then
|
||||
lucetc-wasi \
|
||||
--target-cpu native \
|
||||
--reserved-size "4GiB" \
|
||||
--opt-level speed \
|
||||
"$1" -o "${1}.so" &&
|
||||
lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS}" "${1}.so" &&
|
||||
rm -f "${1}.so" && exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "WebAssembly runtime failed" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user