mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- allow to set or disable the multithreaded build (n, auto or disable)
This commit is contained in:
parent
dbddb21668
commit
375bbd497d
1 changed files with 10 additions and 2 deletions
|
@ -146,9 +146,17 @@ if (VCVERS >= 1400) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VCVERS >= 1500) {
|
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 ');
|
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
|
// General link flags
|
||||||
DEFINE("LDFLAGS", "/nologo /version:" +
|
DEFINE("LDFLAGS", "/nologo /version:" +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue