From: Pierre Joye Date: Thu, 23 Apr 2009 20:19:31 +0000 (+0000) Subject: - MFB: allow to set or disable the multithreaded build (n, auto or disable) X-Git-Tag: php-5.4.0alpha1~191^2~3876 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02d471d6890fd301127185a5cf9948ff87e065c3;p=php - MFB: allow to set or disable the multithreaded build (n, auto or disable) --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index f67bd303e0..f78d2337a7 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