Skip to content

Commit 1e82558

Browse files
sqlite: use bundled amalgamation on Linux/macOS when pkg-config is unavailable
When `pkg-config sqlite3` fails, fall back to compiling the bundled `thirdparty/sqlite/sqlite3.c` directly instead of `-lsqlite3`, which requires a system development package. Users can obtain the amalgamation by running `vlib/db/sqlite/install_thirdparty_sqlite.vsh`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3d9911f commit 1e82558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlib/db/sqlite/sqlite.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $if $pkgconfig('sqlite3') {
1111
#flag windows -L@VEXEROOT/thirdparty/sqlite
1212
#flag windows @VEXEROOT/thirdparty/sqlite/sqlite3.o
1313
} $else {
14-
#flag -lsqlite3
14+
#flag @VEXEROOT/thirdparty/sqlite/sqlite3.c
1515
}
1616
#include "sqlite3.h" # The SQLite header file is missing. Please run vlib/db/sqlite/install_thirdparty_sqlite.vsh to download an SQLite amalgamation, or install its development package.
1717

0 commit comments

Comments
 (0)