mirror of https://github.com/sysown/proxysql
Step 7 of the GenAI plugin carve-out made the sqlite-vec call site
in core unconditional (lib/proxy_sqlite3_symbols.cpp:58 includes
"sqlite-vec.h"; src/Makefile linkages $(SQLITE_VEC_OBJ) into
libproxysql.a unconditionally). But deps/Makefile still gated the
ACTUAL build of vec.o + sqlite-vec.h on PROXYSQLGENAI=1, so
non-genai builds (debian12-dbg, ubuntu22-tap on the CI matrix)
failed at the lib step:
proxy_sqlite3_symbols.cpp:58:10: fatal error: sqlite-vec.h:
No such file or directory
Always pull sqlite-vec into the deps build (the existing
`sqlite-vec: sqlite3/sqlite3/vec.o` target stays for callers that
explicitly request it). Per the design intent documented next to
$(SQLITE_VEC_OBJ) in src/Makefile: vec.o is always linked into
proxysql so the genai plugin (when dlopen'd) can call
sqlite3_vec_init on the same SQLite that core links against;
without the plugin loaded, the extension is dead code that doesn't
hurt non-genai installs.
parent
ff3bcec5fa
commit
d7a5eb463d
Loading…
Reference in new issue