File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11# sqlite3-ruby Changelog
22
3+ ## next / unreleased
4+
5+ ### Added
6+
7+ * Compile packaged sqlite3 with additional flags to explicitly enable FTS5, and set synchronous mode to normal when in WAL mode. [ #408 ] (@flavorjones )
8+
9+
310## 1.6.6 / 2023-09-12
411
512### Dependencies
Original file line number Diff line number Diff line change @@ -49,13 +49,18 @@ def configure_system_libraries
4949
5050 def configure_packaged_libraries
5151 minimal_recipe . tap do |recipe |
52- recipe . configure_options += [ "--enable-shared=no" , "--enable-static=yes" ]
52+ recipe . configure_options += [
53+ "--enable-shared=no" ,
54+ "--enable-static=yes" ,
55+ "--enable-fts5" ,
56+ ]
5357 ENV . to_h . tap do |env |
5458 user_cflags = with_config ( "sqlite-cflags" )
5559 more_cflags = [
5660 "-fPIC" , # needed for linking the static library into a shared library
5761 "-O2" , # see https://github.com/sparklemotion/sqlite3-ruby/issues/335 for some benchmarks
5862 "-fvisibility=hidden" , # see https://github.com/rake-compiler/rake-compiler-dock/issues/87
63+ "-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1" ,
5964 ]
6065 env [ "CFLAGS" ] = [ user_cflags , env [ "CFLAGS" ] , more_cflags ] . flatten . join ( " " )
6166 recipe . configure_options += env . select { |k , v | ENV_ALLOWLIST . include? ( k ) }
You can’t perform that action at this time.
0 commit comments