aboutsummaryrefslogtreecommitdiff
path: root/autosetup/sqlite-config.tcl
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2025-03-17 14:59:55 +0000
committerstephan <stephan@noemail.net>2025-03-17 14:59:55 +0000
commit1774ec3ad0e4d450cc1026a0370f7c53e7fb9705 (patch)
tree5877e769cde343885d439cebfe9c3bd02530ab18 /autosetup/sqlite-config.tcl
parentd176ef5881c2dc9e468c81749a3421e3fa0751e9 (diff)
downloadsqlite-1774ec3ad0e4d450cc1026a0370f7c53e7fb9705.tar.gz
sqlite-1774ec3ad0e4d450cc1026a0370f7c53e7fb9705.zip
Add support for the --with-wasi-sdk configure flag to the autoconf build.
FossilOrigin-Name: 44880fa3f0748604ef50b942c28390e041138759efea1d076dfcaa1da48970cb
Diffstat (limited to 'autosetup/sqlite-config.tcl')
-rw-r--r--autosetup/sqlite-config.tcl9
1 files changed, 5 insertions, 4 deletions
diff --git a/autosetup/sqlite-config.tcl b/autosetup/sqlite-config.tcl
index 899d8a507..42b4382cf 100644
--- a/autosetup/sqlite-config.tcl
+++ b/autosetup/sqlite-config.tcl
@@ -258,11 +258,11 @@ proc sqlite-configure {buildMode configScript} {
# Options for exotic/alternative build modes
alternative-builds {
- {canonical} {
- # Potential TODO: add --with-wasi-sdk support to the autoconf
- # build
+ {*} {
with-wasi-sdk:=/opt/wasi-sdk
=> {Top-most dir of the wasi-sdk for a WASI build}
+ }
+ {canonical} {
with-emsdk:=auto
=> {Top-most dir of the Emscripten SDK installation.
@@ -1656,7 +1656,8 @@ proc sqlite-handle-wasi-sdk {} {
tcl
threadsafe
} {
- if {[opt-bool $opt]} {
+ if {[proj-opt-exists $opt] && [opt-bool $opt]} {
+ # -^^^^ distinguish between canonical and autoconf builds
msg-result " --disable-$opt"
proj-opt-set $opt 0
}