If an amalgamation is created using SQLITE_ENABLE_UPDATE_DELETE_LIMIT,
ensure that it can still be compiled without that option by setting the SQLITE_UDL_CAPABLE_PARSER flag in the preamble. FossilOrigin-Name: 5b905d7d7714d1d2c433ff58f5d6917d6d27302d44ca347aa740e768f1354b16
This commit is contained in:
@@ -88,6 +88,18 @@ if {$addstatic} {
|
||||
#endif}
|
||||
}
|
||||
|
||||
# Examine the parse.c file. If it contains lines of the form:
|
||||
#
|
||||
# "#ifndef SQLITE_ENABLE_UPDATE_LIMIT
|
||||
#
|
||||
# then set the SQLITE_UDL_CAPABLE_PARSER flag in the amalgamation.
|
||||
#
|
||||
set in [open tsrc/parse.c]
|
||||
if {[regexp {ifndef SQLITE_ENABLE_UPDATE_DELETE_LIMIT} [read $in]]} {
|
||||
puts $out "#define SQLITE_UDL_CAPABLE_PARSER 1"
|
||||
}
|
||||
close $in
|
||||
|
||||
# These are the header files used by SQLite. The first time any of these
|
||||
# files are seen in a #include statement in the C code, include the complete
|
||||
# text of the file in-line. The file only needs to be included once.
|
||||
|
||||
Reference in New Issue
Block a user