pajoye Thu Apr 23 20:19:31 2009 UTC Modified files: /php-src/win32/build config.w32 Log: - MFB: allow to set or disable the multithreaded build (n, auto or disable) http://cvs.php.net/viewvc.cgi/php-src/win32/build/config.w32?r1=1.100&r2=1.101&diff_format=u Index: php-src/win32/build/config.w32 diff -u php-src/win32/build/config.w32:1.100 php-src/win32/build/config.w32:1.101 --- php-src/win32/build/config.w32:1.100 Wed Mar 18 10:49:36 2009 +++ php-src/win32/build/config.w32 Thu Apr 23 20:19:31 2009 @@ -1,5 +1,5 @@ // vim:ft=javascript -// $Id: config.w32,v 1.100 2009/03/18 10:49:36 dmitry Exp $ +// $Id: config.w32,v 1.101 2009/04/23 20:19:31 pajoye Exp $ // "Master" config file; think of it as a configure.in // equivalent. @@ -146,8 +146,16 @@ } } -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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php