Skip to content

Commit

Permalink
[sparklemotion#573] Enable dbstat table by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Nov 18, 2024
1 parent ef13fcb commit e12938e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext/sqlite3/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def configure_packaged_libraries
"--disable-shared",
"--enable-static",
"--disable-tcl",
"--enable-fts5"
"--enable-fts5",
]
ENV.to_h.tap do |env|
user_cflags = with_config("sqlite-cflags")
Expand All @@ -62,7 +62,8 @@ def configure_packaged_libraries
"-O2", # see https://github.com/sparklemotion/sqlite3-ruby/issues/335 for some benchmarks
"-fvisibility=hidden", # see https://github.com/rake-compiler/rake-compiler-dock/issues/87
"-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1",
"-DSQLITE_USE_URI=1"
"-DSQLITE_USE_URI=1",
"-DSQLITE_ENABLE_DBSTAT_VTAB=1",
]
env["CFLAGS"] = [user_cflags, env["CFLAGS"], more_cflags].flatten.join(" ")
recipe.configure_options += env.select { |k, v| ENV_ALLOWLIST.include?(k) }
Expand Down

0 comments on commit e12938e

Please sign in to comment.