Fix Windows linker conflict between go-sqlite3 and sqlite-vec

Both libraries embed their own copy of SQLite, causing duplicate
symbol errors on Windows. Add CGO_LDFLAGS to allow multiple definitions.
This commit is contained in:
2025-12-16 12:58:59 +00:00
parent 4ca8ac2f41
commit bd9e73096b
+2
View File
@@ -37,6 +37,8 @@ if [[ "$OS" == mingw* ]] || [[ "$OS" == msys* ]] || [[ "$OS" == cygwin* ]]; then
echo "SQLite headers copied to $SQLITE_VEC_PATH/cgo/"
fi
# Tell linker to allow multiple definitions (both go-sqlite3 and sqlite-vec embed SQLite)
echo "CGO_LDFLAGS=-Wl,--allow-multiple-definition" >> "$GITHUB_ENV"
echo "SQLite setup complete"
fi