0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 16:49:47 +00:00
libsql/libsql-sqlite3/tool/pre-release.sh
2023-10-16 13:58:16 +02:00

17 lines
519 B
Bash
Executable File

#!/usr/bin/env bash
# Compiles libSQL in the following flavors:
# - vanilla
# - with Wasm user-defined functions support linked statically
# - with Wasm user-defined functions support linked as a separate dynamic library
if [[ "$#" != "1" ]]; then
echo "Usage: $0 <release-number>"
exit 1
fi
for mode in "" "--enable-wasm-runtime" "--enable-wasm-runtime-dynamic"; do
echo Mode: ${mode:-regular}
./configure --enable-releasemode --enable-all $mode && make -j12 && ./tool/generate-artifacts.sh
done