mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Dependencies.
This commit is contained in:
@@ -3,7 +3,6 @@ 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/ \
|
||||
@@ -12,4 +11,8 @@ zig cc --target=wasm32-wasi -flto -g0 -O2 \
|
||||
-mnontrapping-fptoint -msign-ext \
|
||||
-mexec-model=reactor \
|
||||
-D_HAVE_SQLITE_CONFIG_H \
|
||||
$(awk '{print "-Wl,--export="$0}' exports.txt)
|
||||
$(awk '{print "-Wl,--export="$0}' exports.txt)
|
||||
|
||||
trap 'rm -f sqlite3.tmp' EXIT
|
||||
wasm-ctor-eval -g -c _initialize sqlite3.wasm -o sqlite3.tmp
|
||||
wasm-opt -g -O2 sqlite3.tmp -o sqlite3.wasm
|
||||
Binary file not shown.
Reference in New Issue
Block a user