- fix logic

This commit is contained in:
Pierre Joye 2009-04-24 11:34:38 +00:00
parent 3110003f3e
commit f4c90952b0

View File

@ -150,11 +150,12 @@ ARG_WITH('mp', 'Tell VC9 use up to [n,auto,disable] processes for compilation',
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);
if(parseInt(PHP_MP) != 0) {
ADD_FLAG('CFLAGS', ' /MP'+ PHP_MP +' ');
} else {
STDOUT.WriteLine('WARNING: Invalid argument for MP: ' + PHP_MP);
}
}
}