mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-06-05 23:03:55 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user