summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/embed/build.sh
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2025-03-09 17:47:56 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2025-03-10 01:59:49 +0100
commit3ac1ee16f377d31a0fb80c8dae28b6239ac4229e (patch)
treef61faa581feaaeaba2542b9f2b8234a590684413 /vendor/github.com/ncruces/go-sqlite3/embed/build.sh
parent[chore] update URLs to forked source (diff)
downloadgotosocial-3ac1ee16f377d31a0fb80c8dae28b6239ac4229e.tar.xz
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/embed/build.sh')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/embed/build.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/embed/build.sh b/vendor/github.com/ncruces/go-sqlite3/embed/build.sh
deleted file mode 100644
index a6b21d366..000000000
--- a/vendor/github.com/ncruces/go-sqlite3/embed/build.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-cd -P -- "$(dirname -- "$0")"
-
-ROOT=../
-BINARYEN="$ROOT/tools/binaryen/bin"
-WASI_SDK="$ROOT/tools/wasi-sdk/bin"
-
-trap 'rm -f sqlite3.tmp' EXIT
-
-"$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -O2 \
- -Wall -Wextra -Wno-unused-parameter -Wno-unused-function \
- -o sqlite3.wasm "$ROOT/sqlite3/main.c" \
- -I"$ROOT/sqlite3" \
- -mexec-model=reactor \
- -msimd128 -mmutable-globals -mmultivalue \
- -mbulk-memory -mreference-types \
- -mnontrapping-fptoint -msign-ext \
- -fno-stack-protector -fno-stack-clash-protection \
- -Wl,--stack-first \
- -Wl,--import-undefined \
- -Wl,--initial-memory=327680 \
- -D_HAVE_SQLITE_CONFIG_H \
- -DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \
- $(awk '{print "-Wl,--export="$0}' exports.txt)
-
-"$BINARYEN/wasm-ctor-eval" -g -c _initialize sqlite3.wasm -o sqlite3.tmp
-"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
- sqlite3.tmp -o sqlite3.wasm \
- --enable-simd --enable-mutable-globals --enable-multivalue \
- --enable-bulk-memory --enable-reference-types \
- --enable-nontrapping-float-to-int --enable-sign-ext \ No newline at end of file