diff options
| author | Juanma Barranquero | 2010-07-18 11:41:48 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-18 11:41:48 +0200 |
| commit | 7d0170c8c71ff83a380770d4c164e2b949c08628 (patch) | |
| tree | 5d8c7e46b8992bcf4475ef011c9e621f0438df4f | |
| parent | f12492c863d47098bc0675d552083ab37ca321ad (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rwxr-xr-x | nt/configure.bat | 10 | ||||
| -rw-r--r-- | nt/gmake.defs | 9 | ||||
| -rw-r--r-- | nt/nmake.defs | 9 |
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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu> | 7 | 2010-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. | |||
| 80 | set prefix= | 80 | set prefix= |
| 81 | set nodebug=N | 81 | set nodebug=N |
| 82 | set noopt=N | 82 | set noopt=N |
| 83 | set enablechecking=N | ||
| 83 | set profile=N | 84 | set profile=N |
| 84 | set nocygwin=N | 85 | set nocygwin=N |
| 85 | set COMPILER= | 86 | set COMPILER= |
| @@ -100,6 +101,7 @@ if "%1" == "--with-gcc" goto withgcc | |||
| 100 | if "%1" == "--with-msvc" goto withmsvc | 101 | if "%1" == "--with-msvc" goto withmsvc |
| 101 | if "%1" == "--no-debug" goto nodebug | 102 | if "%1" == "--no-debug" goto nodebug |
| 102 | if "%1" == "--no-opt" goto noopt | 103 | if "%1" == "--no-opt" goto noopt |
| 104 | if "%1" == "--enable-checking" goto enablechecking | ||
| 103 | if "%1" == "--profile" goto profile | 105 | if "%1" == "--profile" goto profile |
| 104 | if "%1" == "--no-cygwin" goto nocygwin | 106 | if "%1" == "--no-cygwin" goto nocygwin |
| 105 | if "%1" == "--cflags" goto usercflags | 107 | if "%1" == "--cflags" goto usercflags |
| @@ -119,6 +121,7 @@ echo. --with-gcc use GCC to compile Emacs | |||
| 119 | echo. --with-msvc use MSVC to compile Emacs | 121 | echo. --with-msvc use MSVC to compile Emacs |
| 120 | echo. --no-debug exclude debug info from executables | 122 | echo. --no-debug exclude debug info from executables |
| 121 | echo. --no-opt disable optimization | 123 | echo. --no-opt disable optimization |
| 124 | echo. --enable-checking enable checks and assertions | ||
| 122 | echo. --profile enable profiling | 125 | echo. --profile enable profiling |
| 123 | echo. --no-cygwin use -mno-cygwin option with GCC | 126 | echo. --no-cygwin use -mno-cygwin option with GCC |
| 124 | echo. --cflags FLAG pass FLAG to compiler | 127 | echo. --cflags FLAG pass FLAG to compiler |
| @@ -157,6 +160,11 @@ set noopt=Y | |||
| 157 | shift | 160 | shift |
| 158 | goto again | 161 | goto again |
| 159 | rem ---------------------------------------------------------------------- | 162 | rem ---------------------------------------------------------------------- |
| 163 | :enablechecking | ||
| 164 | set enablechecking=Y | ||
| 165 | shift | ||
| 166 | goto again | ||
| 167 | rem ---------------------------------------------------------------------- | ||
| 160 | :profile | 168 | :profile |
| 161 | set profile=Y | 169 | set profile=Y |
| 162 | shift | 170 | shift |
| @@ -529,6 +537,7 @@ if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings | |||
| 529 | if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings | 537 | if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings |
| 530 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings | 538 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings |
| 531 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings | 539 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings |
| 540 | if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings | ||
| 532 | if (%profile%) == (Y) echo PROFILE=1 >>config.settings | 541 | if (%profile%) == (Y) echo PROFILE=1 >>config.settings |
| 533 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings | 542 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings |
| 534 | if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings | 543 | if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings |
| @@ -660,6 +669,7 @@ set $foo$= | |||
| 660 | set prefix= | 669 | set prefix= |
| 661 | set nodebug= | 670 | set nodebug= |
| 662 | set noopt= | 671 | set noopt= |
| 672 | set enablechecking= | ||
| 663 | set profile= | 673 | set profile= |
| 664 | set nocygwin= | 674 | set nocygwin= |
| 665 | set COMPILER= | 675 | set 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 | |||
| 198 | else | 198 | else |
| 199 | DEBUG_CFLAGS = | 199 | DEBUG_CFLAGS = |
| 200 | endif | 200 | endif |
| 201 | CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | 201 | |
| 202 | ifdef ENABLECHECKS | ||
| 203 | CHECKING_CFLAGS = -DENABLE_CHECKING -DXASSERTS | ||
| 204 | else | ||
| 205 | CHECKING_CFLAGS = | ||
| 206 | endif | ||
| 207 | |||
| 208 | CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | ||
| 202 | EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 | 209 | EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 |
| 203 | 210 | ||
| 204 | ifdef PROFILE | 211 | ifdef 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 |
| 137 | DEBUG_CFLAGS = | 137 | DEBUG_CFLAGS = |
| 138 | !endif | 138 | !endif |
| 139 | |||
| 140 | !ifdef ENABLECHECKS | ||
| 141 | CHECKING_CFLAGS = -DENABLE_CHECKING -DXASSERTS | ||
| 142 | !else | ||
| 143 | CHECKING_CFLAGS = | ||
| 144 | !endif | ||
| 145 | |||
| 139 | CFLAGS = -I. $(ARCH_CFLAGS) \ | 146 | CFLAGS = -I. $(ARCH_CFLAGS) \ |
| 140 | $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | 147 | $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) |
| 141 | EMACS_EXTRA_C_FLAGS = | 148 | EMACS_EXTRA_C_FLAGS = |
| 142 | 149 | ||
| 143 | SYS_LDFLAGS = -nologo -release -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj | 150 | SYS_LDFLAGS = -nologo -release -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj |