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 1
1
# sqlite3-ruby Changelog
2
2
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
+
3
10
## 1.6.6 / 2023-09-12
4
11
5
12
### Dependencies
Original file line number Diff line number Diff line change @@ -49,13 +49,18 @@ def configure_system_libraries
49
49
50
50
def configure_packaged_libraries
51
51
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
+ ]
53
57
ENV . to_h . tap do |env |
54
58
user_cflags = with_config ( "sqlite-cflags" )
55
59
more_cflags = [
56
60
"-fPIC" , # needed for linking the static library into a shared library
57
61
"-O2" , # see https://github.com/sparklemotion/sqlite3-ruby/issues/335 for some benchmarks
58
62
"-fvisibility=hidden" , # see https://github.com/rake-compiler/rake-compiler-dock/issues/87
63
+ "-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1" ,
59
64
]
60
65
env [ "CFLAGS" ] = [ user_cflags , env [ "CFLAGS" ] , more_cflags ] . flatten . join ( " " )
61
66
recipe . configure_options += env . select { |k , v | ENV_ALLOWLIST . include? ( k ) }
You can’t perform that action at this time.
0 commit comments