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:
dt
2009-08-12 15:20:36 +02:00
committed by Daniel Molkentin
parent 73db6ba48c
commit ac3e37fc6e
5 changed files with 30 additions and 1 deletions

View File

@@ -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";
}