]> granicus.if.org Git - php/commitdiff
Added a warning in case --with-mp is combined with --enable-debug
authorKalle Sommer Nielsen <kalle@php.net>
Sat, 6 Aug 2016 09:00:22 +0000 (11:00 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Sat, 6 Aug 2016 09:00:22 +0000 (11:00 +0200)
This causes a D9030 since we specify a minimal build using /Gm in case we make a debug build

win32/build/config.w32

index 58b1420b898c27702cd628c074735b11c443e7ad..fa9ed623507c717bd8bb1c43a5fc8b5393bcd6b9 100644 (file)
@@ -63,6 +63,9 @@ toolset_setup_common_cflags();
 ARG_WITH('mp', 'Tell Visual Studio use up to [n,auto,disable] processes for compilation', 'auto');
 var PHP_MP_DISABLED = true;
 if (VS_TOOLSET && PHP_MP != 'disable') {
+       if(PHP_DEBUG == 'yes') {
+               STDOUT.WriteLine('WARNING: Debug builds cannot be built using multi processing');
+       } else {
                // no from disable-all 
                if(PHP_MP == 'auto' || PHP_MP == 'no') {
                         ADD_FLAG('CFLAGS', ' /MP ');
@@ -75,6 +78,7 @@ if (VS_TOOLSET && PHP_MP != 'disable') {
                                STDOUT.WriteLine('WARNING: Invalid argument for MP: ' + PHP_MP);
                        }
                }
+       }
 }
 
 if (!PHP_MP_DISABLED) {