]> granicus.if.org Git - php/commitdiff
- MFH: parser's scan function is too large for VC6-7.x, disable the optimizer (size...
authorPierre Joye <pajoye@php.net>
Sat, 2 Aug 2008 15:49:37 +0000 (15:49 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 2 Aug 2008 15:49:37 +0000 (15:49 +0000)
ext/date/config.w32

index 483770d4a077741927aa0c7e24942cde10e1db4e..aa0bfe485863913e94c5ff0e9e47983afd230c96 100755 (executable)
@@ -5,6 +5,11 @@ EXTENSION("date", "php_date.c", false, "-Iext/date/lib");
 ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
 AC_DEFINE('HAVE_DATE', 1, 'Have date/time support');
 
+// date parser's scan function too large for VC6 - VC7.x, drop the optimization solves the problem
+if (VCVERS<1400) {
+ ADD_FLAG('CFLAGS_DATE', ' /O1 ');
+}
+
 var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
 tl_config.WriteLine("#include \"config.w32.h\"");
 tl_config.Close();