Skip to content

Commit 4ef6f72

Browse files
authored
Compile sqlite with FTS3 enhanced query syntax enabled (#562)
Fixes #550 This adds three compilation flags to the embedded sqlite module: - `-DSQLITE_ENABLE_FTS3` to explicitly enable FTS3 support (which AFAIK is already enabled by default) - `-DSQLITE_ENABLE_FTS3_PARENTHESIS` to enable the enhanced FTS3 query syntax (which isn't enabled by default) - `-DSQLITE_ENABLE_FTS3_TOKENIZER` to enable the two-argument version of the `fts3_tokenizer()` interface. It still has to be enabled on the connection-level using `Connection.setconfig` All those flags are enabled by default in the Debian build of SQLite, and probably in other distributions as well.
1 parent bdb0722 commit 4ef6f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpython-unix/build-sqlite.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ elif [ "${TARGET_TRIPLE}" = "x86_64-apple-ios" ]; then
2222
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_search_system=no"
2323
fi
2424

25-
CFLAGS="${EXTRA_TARGET_CFLAGS} -DSQLITE_ENABLE_DBSTAT_VTAB -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ./configure ${CONFIGURE_FLAGS}
25+
CFLAGS="${EXTRA_TARGET_CFLAGS} -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ./configure ${CONFIGURE_FLAGS}
2626

2727
make -j ${NUM_CPUS}
2828
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out

0 commit comments

Comments
 (0)