forked from qt-creator/qt-creator
Add explicit support to use jom instead of nmake (which does not support -j)
jom can be found at http://qt.gitorious.org/qt-labs/jom Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
This commit is contained in:
@@ -374,6 +374,14 @@ void MSVCToolChain::addToEnvironment(ProjectExplorer::Environment &env)
|
||||
|
||||
QString MSVCToolChain::makeCommand() const
|
||||
{
|
||||
if (ProjectExplorerPlugin::instance()->projectExplorerSettings().useJom) {
|
||||
// We want jom! Try to find it.
|
||||
QString jom = QCoreApplication::applicationDirPath() + QLatin1String("/jom.exe");
|
||||
if (QFileInfo(jom).exists())
|
||||
return jom;
|
||||
else
|
||||
return "jom.exe";
|
||||
}
|
||||
return "nmake.exe";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user