1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Teach ext/wasm/GNUmakefile to use tool/emcc.sh and fix a syntax error in tool/emcc.sh.in. Work around a JimTCL incompatibility in tool/mkshellc.tcl.

FossilOrigin-Name: 24e0f6ecc67615a2a8c2df08aa47a782cf692fb1a5a59246eab83c0232e78edc
This commit is contained in:
stephan
2024-10-22 12:56:00 +00:00
parent 1e38a9cc1a
commit 6ac6bedc80
6 changed files with 18 additions and 22 deletions

View File

@ -16,7 +16,7 @@ EMSDK_HOME="@EMSDK_HOME@"
EMSDK_ENV="@EMSDK_ENV@"
emcc="@BIN_EMCC@"
if [x = "x${emcc}" ]; then
if [ x = "x${emcc}" ]; then
emcc=`which emcc 2>/dev/null`
fi

View File

@ -34,7 +34,8 @@ set in [open $topdir/src/shell.c.in]
fconfigure $in -translation binary
proc omit_redundant_typedefs {line} {
global typedef_seen
if {[regexp {^typedef .*\y([a-zA-Z0-9_]+);} $line all typename]} {
if {[regexp {^typedef .* ([a-zA-Z0-9_]+);} $line all typename]} {
# --------------------\y jimtcl does not support \y
if {[info exists typedef_seen($typename)]} {
return "/* [string map {/* // */ //} $line] */"
}