mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
14 lines
349 B
Bash
Executable File
14 lines
349 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
|
|
cd -P -- "$(dirname -- "$0")"
|
|
|
|
# build SQLite
|
|
zig cc --target=wasm32-wasi -flto -g0 -O2 \
|
|
-o sqlite3.wasm ../sqlite3/main.c \
|
|
-I../sqlite3/ \
|
|
-mmutable-globals \
|
|
-mbulk-memory -mreference-types \
|
|
-mnontrapping-fptoint -msign-ext \
|
|
-D_HAVE_SQLITE_CONFIG_H \
|
|
$(awk '{print "-Wl,--export="$0}' exports.txt) |