]> granicus.if.org Git - php/commitdiff
/Gz and /RTC1 is for debug builds
authorFrank M. Kromann <fmk@php.net>
Tue, 22 Nov 2005 00:29:56 +0000 (00:29 +0000)
committerFrank M. Kromann <fmk@php.net>
Tue, 22 Nov 2005 00:29:56 +0000 (00:29 +0000)
win32/build/config.w32

index 300a2fb7c3cbc9b898905ebf4666ca944d796c16..f2240fb10ee453c0416482b21224e1faf72dc1d0 100644 (file)
@@ -89,8 +89,10 @@ if (VCVERS < 14) {
        // Enable automatic precompiled headers
        ADD_FLAG('CFLAGS', ' /YX ');
 
-       // Set some debug/release specific options
-       ADD_FLAG('CFLAGS', ' /GZ ');
+       if (PHP_DEBUG == "yes") {
+               // Set some debug/release specific options
+               ADD_FLAG('CFLAGS', ' /GZ ');
+       }
 }
 
 if (VCVERS >= 14) {
@@ -98,8 +100,10 @@ if (VCVERS >= 14) {
        // disable annoying warnings
        ADD_FLAG('CFLAGS', ' /wd4996 ');
 
-       // Set some debug/release specific options
-       ADD_FLAG('CFLAGS', ' /RTC1 ');
+       if (PHP_DEBUG == "yes") {
+               // Set some debug/release specific options
+               ADD_FLAG('CFLAGS', ' /RTC1 ');
+       }
 }
 
 // General link flags