qmake: fix /MP option for VS 2010
Setting QMAKE_CFLAGS+=/MP in a project file did not work for VS 2010. Task-number: QTBUG-23490 Change-Id: I39c349bf8dc2a4add2f32a430a245a20cc54147e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
0ba89ed91f
commit
c85121989f
@ -649,11 +649,11 @@ bool VCCLCompilerTool::parseOption(const char* option)
|
|||||||
RuntimeLibrary = rtMultiThreadedDebug;
|
RuntimeLibrary = rtMultiThreadedDebug;
|
||||||
break;
|
break;
|
||||||
} else if (second == 'P') {
|
} else if (second == 'P') {
|
||||||
if (config->CompilerVersion >= NET2005) {
|
if (config->CompilerVersion >= NET2010) {
|
||||||
AdditionalOptions += option;
|
|
||||||
} else if (config->CompilerVersion >= NET2010) {
|
|
||||||
MultiProcessorCompilation = _True;
|
MultiProcessorCompilation = _True;
|
||||||
MultiProcessorCompilationProcessorCount = option+3;
|
MultiProcessorCompilationProcessorCount = option+3;
|
||||||
|
} else if (config->CompilerVersion >= NET2005) {
|
||||||
|
AdditionalOptions += option;
|
||||||
} else {
|
} else {
|
||||||
warn_msg(WarnLogic, "/MP option is not supported in Visual C++ < 2005, ignoring.");
|
warn_msg(WarnLogic, "/MP option is not supported in Visual C++ < 2005, ignoring.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user