debug-changes-20040406
authorJeffrey Altman <jaltman@mit.edu>
Tue, 6 Apr 2004 09:54:54 +0000 (09:54 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 6 Apr 2004 09:54:54 +0000 (09:54 +0000)
Add run time checks to the compiler flags when debug

src/config/NTMakefile.i386_nt40

index d9805b2..47d5a7f 100644 (file)
@@ -229,16 +229,20 @@ afscdefs =\
 # /Os   favor small (over fast) code; seems to avoid 64-bit bugs in VC compiler
 
 afscflags =\
-       /Oy- \
+    /Oy- \
        /GF \
        /Gd \
        /Gy \
        /GX \
        /Os
 
+!IF ("$(AFSVER_CL)"!="1200")
+afscdefs = $(afscdefs) /G7 /GT /GS /GZ /RTCs /RTCu
+!ENDIF
+
 !IF ("$(AFSDEV_BUILDTYPE)" == "FREE")
 
-#afscflags = $(afscflags) /Ox
+afscflags = $(afscflags) /Ox
 cdebug = $(cdebug:-Od=) # avoid annoying override warning (D4025)
 cvarsdll = $(cvarsdll:-MDd=-MD)
 NODEBUG=1