Author erlendaasland
Recipients berker.peksag, erlendaasland
Date 2021-03-11.14:29:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615472954.93.0.867905440507.issue43454@roundup.psfhosted.org>
In-reply-to
Content
Unfortunately, there's no way to detect R*Tree support in sqlite3.h. We could run a script that dumps the compile options, and generate a config.h file from that:

$ for L in $(sqlite3 ":memory:" "pragma compile_options"); do echo #define SQLITE_$L >> config.h; done
$ cat config.h
#define SQLITE_COMPILER=clang-12.0.0
#define SQLITE_ENABLE_DBSTAT_VTAB
#define SQLITE_ENABLE_FTS4
#define SQLITE_ENABLE_FTS5
#define SQLITE_ENABLE_GEOPOLY
#define SQLITE_ENABLE_JSON1
#define SQLITE_ENABLE_RTREE
#define SQLITE_ENABLE_STMTVTAB
#define SQLITE_THREADSAFE=1


For Windows and macOS builds, we've already got the SQLite library compile options, so we can just reuse them in CFLAGS when we're building the sqlite3 module.
History
Date User Action Args
2021-03-11 14:29:14erlendaaslandsetrecipients: + erlendaasland, berker.peksag
2021-03-11 14:29:14erlendaaslandsetmessageid: <1615472954.93.0.867905440507.issue43454@roundup.psfhosted.org>
2021-03-11 14:29:14erlendaaslandlinkissue43454 messages
2021-03-11 14:29:14erlendaaslandcreate