aboutsummaryrefslogtreecommitdiff
path: root/autosetup/sqlite-config.tcl
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2025-03-06 09:29:15 +0000
committerstephan <stephan@noemail.net>2025-03-06 09:29:15 +0000
commitd75acb8312a6aacd5cccecf46781e44348bf2a43 (patch)
treed23156ab1f2fb96a14ac99594568b43cf6fca323 /autosetup/sqlite-config.tcl
parent47991d973ac59221e5a5c0b96a658d89284d895c (diff)
downloadsqlite-d75acb8312a6aacd5cccecf46781e44348bf2a43.tar.gz
sqlite-d75acb8312a6aacd5cccecf46781e44348bf2a43.zip
Back out the most significant part of [5c28a17253e2f], as Cygwin is a hybrid. With SQLITE_OS_UNIX it will use POSIX locking, which will misinteract with apps using Windows-style locking.
FossilOrigin-Name: 44adf8f38761a0d756c047f93fc76fc1d0aba8cc209970e3ba13e7040dd14b13
Diffstat (limited to 'autosetup/sqlite-config.tcl')
-rw-r--r--autosetup/sqlite-config.tcl15
1 files changed, 6 insertions, 9 deletions
diff --git a/autosetup/sqlite-config.tcl b/autosetup/sqlite-config.tcl
index 236362040..56567ddb9 100644
--- a/autosetup/sqlite-config.tcl
+++ b/autosetup/sqlite-config.tcl
@@ -445,15 +445,12 @@ proc sqlite-post-options-init {} {
}
sqlite-autoreconfig
proj-file-extensions
- switch -exact -- [sqlite-env-is-unix-on-windows] {
- "" - cygwin {
- define SQLITE_OS_UNIX 1
- define SQLITE_OS_WIN 0
- }
- default {
- define SQLITE_OS_UNIX 0
- define SQLITE_OS_WIN 1
- }
+ if {".exe" eq [get-define TARGET_EXEEXT]} {
+ define SQLITE_OS_UNIX 0
+ define SQLITE_OS_WIN 1
+ } else {
+ define SQLITE_OS_UNIX 1
+ define SQLITE_OS_WIN 0
}
set ::sqliteConfig(msg-debug-enabled) [proj-val-truthy [get-env msg-debug 0]]
sqlite-setup-default-cflags