From a6a9dc2eecfa5884d6cd90804797911d7b82f284 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Tue, 22 Nov 2005 00:29:56 +0000 Subject: [PATCH] /Gz and /RTC1 is for debug builds --- win32/build/config.w32 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 300a2fb7c3..f2240fb10e 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -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 -- 2.50.1