com php-src: Added a warning in case --with-mp is combined with --enable-debug: win32/build/config.w32
| From: | Kalle Sommer Nielsen | Date: | Sat, 06 Aug 2016 09:00:22 +0000 |
| Subject: | com php-src: Added a warning in case --with-mp is combined with --enable-debug: win32/build/config.w32 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93640@lists.php.net to get a copy of this message | ||
Commit: a402d0bdabde4120b7278323abc8ea046e30f5a2
Author: Kalle Sommer Nielsen <kalle@php.net> Sat, 6 Aug 2016 11:00:22 +0200
Parents: 7813e9de11500b51b9e30193fcdb7d09cf99a7cf
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a402d0bdabde4120b7278323abc8ea046e30f5a2
Log:
Added a warning in case --with-mp is combined with --enable-debug
This causes a D9030 since we specify a minimal build using /Gm in case we make a debug build
Changed paths:
M win32/build/config.w32
Diff:
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index 58b1420..fa9ed62 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -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) {