aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-18 11:41:48 +0200
committerJuanma Barranquero2010-07-18 11:41:48 +0200
commit7d0170c8c71ff83a380770d4c164e2b949c08628 (patch)
tree5d8c7e46b8992bcf4475ef011c9e621f0438df4f
parentf12492c863d47098bc0675d552083ab37ca321ad (diff)
downloademacs-7d0170c8c71ff83a380770d4c164e2b949c08628.tar.gz
emacs-7d0170c8c71ff83a380770d4c164e2b949c08628.zip
* configure.bat: New option --enable-checking.
* gmake.defs, nmake.defs (CHECKING_CFLAGS): New define. (CFLAGS): Include it.
-rw-r--r--nt/ChangeLog6
-rwxr-xr-xnt/configure.bat10
-rw-r--r--nt/gmake.defs9
-rw-r--r--nt/nmake.defs9
4 files changed, 32 insertions, 2 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 6e6ed00696d..0d10a8123d0 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,9 @@
12010-07-18 Juanma Barranquero <lekktu@gmail.com>
2
3 * configure.bat: New option --enable-checking.
4 * gmake.defs, nmake.defs (CHECKING_CFLAGS): New define.
5 (CFLAGS): Include it.
6
12010-07-12 Dan Nicolaescu <dann@ics.uci.edu> 72010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * config.nt (volatile): Remove definition. 9 * config.nt (volatile): Remove definition.
diff --git a/nt/configure.bat b/nt/configure.bat
index 7317416442b..705d4e92717 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -80,6 +80,7 @@ rem Default settings.
80set prefix= 80set prefix=
81set nodebug=N 81set nodebug=N
82set noopt=N 82set noopt=N
83set enablechecking=N
83set profile=N 84set profile=N
84set nocygwin=N 85set nocygwin=N
85set COMPILER= 86set COMPILER=
@@ -100,6 +101,7 @@ if "%1" == "--with-gcc" goto withgcc
100if "%1" == "--with-msvc" goto withmsvc 101if "%1" == "--with-msvc" goto withmsvc
101if "%1" == "--no-debug" goto nodebug 102if "%1" == "--no-debug" goto nodebug
102if "%1" == "--no-opt" goto noopt 103if "%1" == "--no-opt" goto noopt
104if "%1" == "--enable-checking" goto enablechecking
103if "%1" == "--profile" goto profile 105if "%1" == "--profile" goto profile
104if "%1" == "--no-cygwin" goto nocygwin 106if "%1" == "--no-cygwin" goto nocygwin
105if "%1" == "--cflags" goto usercflags 107if "%1" == "--cflags" goto usercflags
@@ -119,6 +121,7 @@ echo. --with-gcc use GCC to compile Emacs
119echo. --with-msvc use MSVC to compile Emacs 121echo. --with-msvc use MSVC to compile Emacs
120echo. --no-debug exclude debug info from executables 122echo. --no-debug exclude debug info from executables
121echo. --no-opt disable optimization 123echo. --no-opt disable optimization
124echo. --enable-checking enable checks and assertions
122echo. --profile enable profiling 125echo. --profile enable profiling
123echo. --no-cygwin use -mno-cygwin option with GCC 126echo. --no-cygwin use -mno-cygwin option with GCC
124echo. --cflags FLAG pass FLAG to compiler 127echo. --cflags FLAG pass FLAG to compiler
@@ -157,6 +160,11 @@ set noopt=Y
157shift 160shift
158goto again 161goto again
159rem ---------------------------------------------------------------------- 162rem ----------------------------------------------------------------------
163:enablechecking
164set enablechecking=Y
165shift
166goto again
167rem ----------------------------------------------------------------------
160:profile 168:profile
161set profile=Y 169set profile=Y
162shift 170shift
@@ -529,6 +537,7 @@ if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings
529if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings 537if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings
530if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings 538if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings
531if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 539if (%noopt%) == (Y) echo NOOPT=1 >>config.settings
540if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings
532if (%profile%) == (Y) echo PROFILE=1 >>config.settings 541if (%profile%) == (Y) echo PROFILE=1 >>config.settings
533if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 542if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings
534if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings 543if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings
@@ -660,6 +669,7 @@ set $foo$=
660set prefix= 669set prefix=
661set nodebug= 670set nodebug=
662set noopt= 671set noopt=
672set enablechecking=
663set profile= 673set profile=
664set nocygwin= 674set nocygwin=
665set COMPILER= 675set COMPILER=
diff --git a/nt/gmake.defs b/nt/gmake.defs
index 7b2aba4151e..f552113e3d4 100644
--- a/nt/gmake.defs
+++ b/nt/gmake.defs
@@ -198,7 +198,14 @@ DEBUG_CFLAGS = -DEMACSDEBUG
198else 198else
199DEBUG_CFLAGS = 199DEBUG_CFLAGS =
200endif 200endif
201CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) 201
202ifdef ENABLECHECKS
203CHECKING_CFLAGS = -DENABLE_CHECKING -DXASSERTS
204else
205CHECKING_CFLAGS =
206endif
207
208CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
202EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 209EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1
203 210
204ifdef PROFILE 211ifdef PROFILE
diff --git a/nt/nmake.defs b/nt/nmake.defs
index c065ee60de1..412b0148bb5 100644
--- a/nt/nmake.defs
+++ b/nt/nmake.defs
@@ -136,8 +136,15 @@ DEBUG_CFLAGS = -DEMACSDEBUG
136!else 136!else
137DEBUG_CFLAGS = 137DEBUG_CFLAGS =
138!endif 138!endif
139
140!ifdef ENABLECHECKS
141CHECKING_CFLAGS = -DENABLE_CHECKING -DXASSERTS
142!else
143CHECKING_CFLAGS =
144!endif
145
139CFLAGS = -I. $(ARCH_CFLAGS) \ 146CFLAGS = -I. $(ARCH_CFLAGS) \
140 $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) 147 $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
141EMACS_EXTRA_C_FLAGS = 148EMACS_EXTRA_C_FLAGS =
142 149
143SYS_LDFLAGS = -nologo -release -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj 150SYS_LDFLAGS = -nologo -release -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj