diff options
author | stephan <stephan@noemail.net> | 2025-04-05 07:12:41 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-04-05 07:12:41 +0000 |
commit | 4d411659c4e9f9bc5230b48005132eabb718e7d2 (patch) | |
tree | 0e3d3dc420b7686998ccdd7715e2a4d7bf671c67 /autosetup/sqlite-config.tcl | |
parent | 7cf1b290652ff8cfc1c6bac052c6ed9c74017777 (diff) | |
download | sqlite-4d411659c4e9f9bc5230b48005132eabb718e7d2.tar.gz sqlite-4d411659c4e9f9bc5230b48005132eabb718e7d2.zip |
Move the automatic reconfigure tcl code from sqlite-config.tcl to proj.tcl so that the TEA bits can reuse it.
FossilOrigin-Name: 52839db2fcdf37631d13c05165ecb551a89c05bd6836f62d62f8f0b7bbe6c6cd
Diffstat (limited to 'autosetup/sqlite-config.tcl')
-rw-r--r-- | autosetup/sqlite-config.tcl | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/autosetup/sqlite-config.tcl b/autosetup/sqlite-config.tcl index b723a53c6..0f8b67080 100644 --- a/autosetup/sqlite-config.tcl +++ b/autosetup/sqlite-config.tcl @@ -469,7 +469,7 @@ proc sqlite-configure-phase1 {buildMode} { } set ::sqliteConfig(msg-debug-enabled) [proj-val-truthy [get-env msg-debug 0]] proc-debug "msg-debug is enabled" - sqlite-autoreconfig + proj-setup-autoreconfig SQLITE_AUTORECONFIG proj-file-extensions if {".exe" eq [get-define TARGET_EXEEXT]} { define SQLITE_OS_UNIX 0 @@ -548,27 +548,6 @@ proc proc-debug {msg} { msg-debug "\[[proj-current-proc-name 1]\]: $msg" } -######################################################################## -# Sets up the SQLITE_AUTORECONFIG define. -proc sqlite-autoreconfig {} { - # SQLITE_AUTORECONFIG contains make target rules for re-running the - # configure script with the same arguments it was initially invoked - # with. This can be used to automatically reconfigure. - set squote {{arg} { - # Wrap $arg in single-quotes if it looks like it might need that - # to avoid mis-handling as a shell argument. We assume that $arg - # will never contain any single-quote characters. - if {[string match {*[ &;$*"]*} $arg]} { return '$arg' } - return $arg - }} - define-append SQLITE_AUTORECONFIG cd [apply $squote $::autosetup(builddir)] \ - && [apply $squote $::autosetup(srcdir)/configure] - #{*}$::autosetup(argv) breaks with --flag='val with spaces', so... - foreach arg $::autosetup(argv) { - define-append SQLITE_AUTORECONFIG [apply $squote $arg] - } -} - define OPT_FEATURE_FLAGS {} ; # -DSQLITE_OMIT/ENABLE flags. define OPT_SHELL {} ; # Feature-related CFLAGS for the sqlite3 CLI app ######################################################################## |