com php-src: fix /mp usage for VC++: win32/build/config.w32 win32/build/confutils.js

From: Date: Wed, 08 Oct 2014 08:59:15 +0000
Subject: com php-src: fix /mp usage for VC++: win32/build/config.w32 win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82191@lists.php.net to get a copy of this message
Commit: 892efcfc3dcc4d869d00e3628c3aa5116fe2c7ab Author: Anatol Belski <ab@php.net> Wed, 8 Oct 2014 10:59:15 +0200 Parents: b129fecef2e7f761f8eb22f5b8edf9745c7565bb Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=892efcfc3dcc4d869d00e3628c3aa5116fe2c7ab Log: fix /mp usage for VC++ Changed paths: M win32/build/config.w32 M win32/build/confutils.js Diff: diff --git a/win32/build/config.w32 b/win32/build/config.w32 index f00584e..358ff4e 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -167,13 +167,16 @@ if (VCVERS >= 1400) { } ARG_WITH('mp', 'Tell Visual Studio use up to [n,auto,disable] processes for compilation', 'auto'); +var PHP_MP_DISABLED = true; if (VCVERS >= 1500 && PHP_MP != 'disable') { // no from disable-all if(PHP_MP == 'auto' || PHP_MP == 'no') { ADD_FLAG('CFLAGS', ' /MP '); + PHP_MP_DISABLED = false; } else { if(parseInt(PHP_MP) != 0) { ADD_FLAG('CFLAGS', ' /MP'+ PHP_MP +' '); + PHP_MP_DISABLED = false; } else { STDOUT.WriteLine('WARNING: Invalid argument for MP: ' + PHP_MP); } diff --git a/win32/build/confutils.js b/win32/build/confutils.js index ae668fe..b6d5900 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -1429,7 +1429,7 @@ function ADD_SOURCES(dir, file_list, target, obj_dir) obj = src.replace(re, ".obj"); tv += " " + sub_build + obj; - if (!MODE_PHPIZE && PHP_ONE_SHOT == "yes") { + if (!MODE_PHPIZE && !PHP_MP_DISABLED) { if (i > 0) { objs_line += " " + sub_build + obj; srcs_line += " " + dir + "\\" + src; @@ -1448,7 +1448,7 @@ function ADD_SOURCES(dir, file_list, target, obj_dir) } } - if (!MODE_PHPIZE && PHP_ONE_SHOT == "yes") { + if (!MODE_PHPIZE && !PHP_MP_DISABLED) { MFO.WriteLine(objs_line + ": " + srcs_line); MFO.WriteLine("\t$(CC) $(" + flags + ") $(CFLAGS) /Fo" + sub_build + " $(" + bd_flags_name + ") /c " + srcs_line); }

« previous php.cvs (#82191) next »