1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Lucet removed the "fast" optimization level

We may drop Lucet support entirely until the interface gets more stable
This commit is contained in:
Frank Denis 2019-10-11 16:33:36 +02:00
parent e433b9ee02
commit da75f6824b

View File

@ -12,7 +12,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then
if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then
lucetc-wasi \
--reserved-size "${MAX_MEMORY_TESTS}" \
-o "${1}.so" --opt-level fast "$1" &&
-o "${1}.so" --opt-level 2 "$1" &&
lucet-wasi --dir=.:. --max-heap-size "${MAX_MEMORY_TESTS}" "${1}.so" &&
rm -f "${1}.so" && exit 0
fi