]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Modify the MSVC makefile to make it easier to select the heap subsystem to use.
authormistachkin <mistachkin@noemail.net>
Wed, 22 Aug 2012 00:39:34 +0000 (00:39 +0000)
committermistachkin <mistachkin@noemail.net>
Wed, 22 Aug 2012 00:39:34 +0000 (00:39 +0000)
FossilOrigin-Name: b1dbf490869d7fc55ce797cf80cf3bf7141d2d15

Makefile.msc
manifest
manifest.uuid

index 3948050cb6700edf110fc9d501556ab2c75967c7..cf17d4df664537452dddbda593b80a9f751d64f6 100644 (file)
@@ -39,6 +39,14 @@ NO_TCL = 0
 #
 SYMBOLS = 1
 
+# Set this to non-0 to use the SQLite debugging heap subsystem.
+#
+MEMDEBUG = 0
+
+# Set this to non-0 to use the Win32 native heap subsystem.
+#
+WIN32HEAP = 0
+
 # Set this to one of the following values to enable various debugging
 # features.  Each level includes the debugging options from the previous
 # levels.  Currently, the recognized values for DEBUG are:
@@ -200,9 +208,16 @@ TCC = $(TCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
 BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
 
 #
-# Use native Win32 heap instead of malloc/free?
+# Use the SQLite debugging heap subsystem?
 #
-# TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1
+!IF $(MEMDEBUG)!=0
+TCC = $(TCC) -DSQLITE_MEMDEBUG=1
+
+#
+# Use native Win32 heap subsystem instead of malloc/free?
+#
+!ELSEIF $(WIN32HEAP)!=0
+TCC = $(TCC) -DSQLITE_WIN32_MALLOC=1
 
 #
 # Validate the heap on every call into the native Win32 heap subsystem?
@@ -210,6 +225,7 @@ BCC = $(BCC) -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
 !IF $(DEBUG)>2
 TCC = $(TCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1
 !ENDIF
+!ENDIF
 
 # The locations of the Tcl header and library files.  Also, the library that
 # non-stubs enabled programs using Tcl must link against.  These variables
index 25c6e732c0edd9888a5b9374e21855846ba54420..796283a32df3fb42a61e97f67fe3f9e95e4dd2d8 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,9 +1,9 @@
-C Update\sthe\sspellfix\svirtual\stable\sso\sthat\sall\sOOM\serrors\sare\sreported\sout\nto\sthe\sapplication.
-D 2012-08-21T17:44:05.685
+C Modify\sthe\sMSVC\smakefile\sto\smake\sit\seasier\sto\sselect\sthe\sheap\ssubsystem\sto\suse.
+D 2012-08-22T00:39:34.681
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in abd5c10d21d1395f140d9e50ea999df8fa4d6376
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
-F Makefile.msc e89bdb795a841e58169ef9e26e543096dfc17c24
+F Makefile.msc 45dd3579cae399d73e3f5eab36f6f332783072e5
 F Makefile.vxworks 879f034a64062a364b21000266bbd5bc6e0c19b9
 F README cd04a36fbc7ea56932a4052d7d0b7f09f27c33d6
 F VERSION a71848df48082f1d6585d4b0819d530fc455485d
@@ -1011,7 +1011,7 @@ F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
 F tool/win/sqlite.vsix 67d8a99aceb56384a81b3f30d6c71743146d2cc9
-P e799222f3b8246e65657a758437914ece7069ba9
-R 5e828b4451d9abd5424b5fdb18a303b8
-U drh
-Z 86d779defb1a86a95d6cf62943de67e6
+P 573770f5a66fa4d708931b30350149eb739da607
+R 37de98f91b94867b24c6cd4084658a36
+U mistachkin
+Z 9fc3bc40456dded5ffdcfb8030fc95c3
index 4aa121d156a13579729794d9decee3517ed55bc4..3674ab90b9d3390db1f4ee2709f81c39308e4bbe 100644 (file)
@@ -1 +1 @@
-573770f5a66fa4d708931b30350149eb739da607
\ No newline at end of file
+b1dbf490869d7fc55ce797cf80cf3bf7141d2d15
\ No newline at end of file