diff nt/nmake.defs @ 109458:a2184d0e089b

* configure.bat: New option --enable-checking. * gmake.defs, nmake.defs (CHECKING_CFLAGS): New define. (CFLAGS): Include it.
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 18 Jul 2010 11:41:48 +0200
parents 1d1d5d9bd884
children 417b1e4d63cd
line wrap: on
line diff
--- a/nt/nmake.defs	Sat Jul 17 17:35:19 2010 -0400
+++ b/nt/nmake.defs	Sun Jul 18 11:41:48 2010 +0200
@@ -136,8 +136,15 @@
 !else
 DEBUG_CFLAGS	=
 !endif
+
+!ifdef ENABLECHECKS
+CHECKING_CFLAGS	= -DENABLE_CHECKING -DXASSERTS
+!else
+CHECKING_CFLAGS	=
+!endif
+
 CFLAGS          = -I. $(ARCH_CFLAGS) \
-		  $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
+		  $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
 EMACS_EXTRA_C_FLAGS =
 
 SYS_LDFLAGS	= -nologo -release -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj