Skip to content

Commit

Permalink
fix jamfile build
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Dec 20, 2024
1 parent fd370f4 commit a09bdcf
Show file tree
Hide file tree
Showing 8 changed files with 10,798 additions and 7 deletions.
6 changes: 2 additions & 4 deletions jamfile/BUILD.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ o/$(MODE)/jamfile/jamfile: \
o/$(MODE)/third_party/sqlite/sqlite3.a \
o/$(MODE)/jamfile/quickjs-sqlite.a \
o/$(MODE)/jamfile/quickjs-llamafile.a \
o/$(MODE)/embedfile/sqlite-csv.a \
o/$(MODE)/embedfile/sqlite-vec.a \
o/$(MODE)/embedfile/sqlite-lines.a \
o/$(MODE)/embedfile/sqlite-lembed.a
o/$(MODE)/third_party/sqlite/sqlite-csv.a \
o/$(MODE)/third_party/sqlite/sqlite-vec.a

$(LLAMA_CPP_JAMFILE_OBJS): private CCFLAGS += -DSQLITE_CORE

Expand Down
4 changes: 2 additions & 2 deletions jamfile/quickjs-sqlite.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "third_party/sqlite/sqlite3.h"
#include "third_party/quickjs/quickjs.h"
#include "third_party/quickjs/cutils.h"
#include "embedfile/sqlite-vec.h"
#include "embedfile/sqlite-csv.h"
#include "third_party/sqlite/sqlite-vec.h"
#include "third_party/sqlite/sqlite-csv.h"
#include <assert.h>


Expand Down
8 changes: 8 additions & 0 deletions third_party/sqlite/BUILD.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ THIRD_PARTY_SQLITE_HDRS = \
o/$(MODE)/third_party/sqlite/sqlite3.a: \
o/$(MODE)/third_party/sqlite/sqlite3.o \

o/$(MODE)/third_party/sqlite/sqlite-csv.a: \
o/$(MODE)/third_party/sqlite/sqlite-csv.o \

o/$(MODE)/third_party/sqlite/sqlite-vec.a: \
o/$(MODE)/third_party/sqlite/sqlite-vec.o \

o/$(MODE)/third_party/sqlite/shell: \
o/$(MODE)/third_party/sqlite/shell.o \
o/$(MODE)/third_party/sqlite/sqlite3.o \
Expand Down Expand Up @@ -61,3 +67,5 @@ o/$(MODE)/third_party/sqlite/sqlite3.o: \
o/$(MODE)/third_party/sqlite: \
o/$(MODE)/third_party/sqlite/shell \
o/$(MODE)/third_party/sqlite/sqlite3.a \
o/$(MODE)/third_party/sqlite/sqlite-csv.a \
o/$(MODE)/third_party/sqlite/sqlite-vec.a \
7 changes: 6 additions & 1 deletion third_party/sqlite/README.llamafile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
DESCRIPTION

SQLite is the world's most popular database
SQLite is the world's most popular database, along with other community SQLite extensions.

ORIGIN

https://www.sqlite.org/2024/sqlite-amalgamation-3470100.zip

https://sqlite.org/src/file/ext/misc/csv.c

https://github.com/asg017/sqlite-vec

LICENSE

Public domain or MIT
Expand All @@ -14,3 +18,4 @@ LOCAL CHANGES

- Renamed <zlib.h> to <third_party/zlib/zlib.h>
- Mangled some quoted includes to not confuse mkdeps
- For sqlite-csv: Eemoved dynamic linking code in favor of static linking
Loading

0 comments on commit a09bdcf

Please sign in to comment.