From 4e14e0225ef2f83b42caf518d364ba3c95d7cc86 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Thu, 11 Jul 2024 22:58:23 -0700 Subject: [PATCH] diff update --- bindings/go/ncruces/go-sqlite3.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bindings/go/ncruces/go-sqlite3.patch b/bindings/go/ncruces/go-sqlite3.patch index 8cf2282..d7425c4 100644 --- a/bindings/go/ncruces/go-sqlite3.patch +++ b/bindings/go/ncruces/go-sqlite3.patch @@ -1,17 +1,17 @@ diff --git a/embed/build.sh b/embed/build.sh -index 36183bb..d202a26 100755 +index 014bd22..f9ccc7d 100755 --- a/embed/build.sh +++ b/embed/build.sh -@@ -20,6 +20,7 @@ WASI_SDK="$ROOT/tools/wasi-sdk-22.0/bin" - -Wl,--stack-first \ - -Wl,--import-undefined \ +@@ -21,6 +21,7 @@ WASI_SDK="$ROOT/tools/wasi-sdk-23.0/bin" + -Wl,--initial-memory=327680 \ -D_HAVE_SQLITE_CONFIG_H \ -+ -DSQLITE_VEC_OMIT_FS=1 \ -DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \ ++ -DSQLITE_VEC_OMIT_FS=1 \ $(awk '{print "-Wl,--export="$0}' exports.txt) - + + trap 'rm -f sqlite3.tmp' EXIT diff --git a/sqlite3/main.c b/sqlite3/main.c -index 4fb926b..49a9ee9 100644 +index 4fb926b..4cade42 100644 --- a/sqlite3/main.c +++ b/sqlite3/main.c @@ -16,7 +16,7 @@ @@ -21,7 +21,7 @@ index 4fb926b..49a9ee9 100644 - +#include "../../sqlite-vec.c" sqlite3_destructor_type malloc_destructor = &free; - + __attribute__((constructor)) void init() { @@ -28,4 +28,5 @@ __attribute__((constructor)) void init() { sqlite3_auto_extension((void (*)(void))sqlite3_series_init);