summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-04-23 20:19:06 +0000
committerPierre Joye <pajoye@php.net>2009-04-23 20:19:06 +0000
commit375bbd497da947ebcb998e6be7eaad8623d1cc8c (patch)
tree1e0ac6b649ede76eb00e18ef55583e99effdf9f9
parentdbddb216682a27b407c5402844583344f8124cc1 (diff)
downloadphp-git-375bbd497da947ebcb998e6be7eaad8623d1cc8c.tar.gz
- allow to set or disable the multithreaded build (n, auto or disable)
-rw-r--r--win32/build/config.w3212
1 files changed, 10 insertions, 2 deletions
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index e779afb96b..1f9821ba3b 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -146,8 +146,16 @@ if (VCVERS >= 1400) {
}
}
-if (VCVERS >= 1500) {
- ADD_FLAG('CFLAGS', ' /MP ');
+ARG_WITH('mp', 'Tell VC9 use up to [n,auto,disable] processes for compilation', 'auto');
+if (VCVERS >= 1500 && PHP_MP != 'disable') {
+ if(PHP_MP == 'auto') {
+ ADD_FLAG('CFLAGS', ' /MP ');
+ }
+ if(parseInt(PHP_MP) != 0) {
+ ADD_FLAG('CFLAGS', ' /MP'+ PHP_MP +' ');
+ } else {
+ STDOUT.WriteLine('WARNING: Invalid argument for MP: ' + PHP_MP);
+ }
}
// General link flags