]> granicus.if.org Git - php/commitdiff
- allow to set or disable the multithreaded build (n, auto or disable)
authorPierre Joye <pajoye@php.net>
Thu, 23 Apr 2009 20:19:06 +0000 (20:19 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 23 Apr 2009 20:19:06 +0000 (20:19 +0000)
win32/build/config.w32

index e779afb96bbdf1f1e22d2e433d0ace73d14d53f2..1f9821ba3bd7b7cf716bf91a5ba5988ab937d87d 100644 (file)
@@ -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