forked from qt-creator/qt-creator
Look for jom also in "jom" subdirectory
Jom is currently installed into the Qt Creator bin/ directory directly, but it can be considered unsafe if we add that to the PATH. Look in a subdirectory for it as well, as preparation for moving it there instead. Task-number: QTCREATORBUG-25585 Change-Id: I85b379fa093c57639875872868c16b5cc964f4aa Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include <app/app_version.h>
|
#include <app/app_version.h>
|
||||||
|
|
||||||
|
#include <coreplugin/icore.h>
|
||||||
|
|
||||||
#include <ios/iosconstants.h>
|
#include <ios/iosconstants.h>
|
||||||
|
|
||||||
#include <projectexplorer/kitinformation.h>
|
#include <projectexplorer/kitinformation.h>
|
||||||
@@ -833,7 +835,8 @@ void CMakeGeneratorKitAspect::addToEnvironment(const Kit *k, Utils::Environment
|
|||||||
if (info.generator == "NMake Makefiles JOM") {
|
if (info.generator == "NMake Makefiles JOM") {
|
||||||
if (env.searchInPath("jom.exe").exists())
|
if (env.searchInPath("jom.exe").exists())
|
||||||
return;
|
return;
|
||||||
env.appendOrSetPath(QCoreApplication::applicationDirPath());
|
env.appendOrSetPath(Core::ICore::libexecPath().toUserOutput());
|
||||||
|
env.appendOrSetPath(Core::ICore::libexecPath().pathAppended("jom").toUserOutput());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1111,8 +1111,8 @@ FilePath MsvcToolChain::makeCommand(const Environment &environment) const
|
|||||||
FilePath command;
|
FilePath command;
|
||||||
if (useJom) {
|
if (useJom) {
|
||||||
tmp = environment.searchInPath(jom,
|
tmp = environment.searchInPath(jom,
|
||||||
{Utils::FilePath::fromString(
|
{Core::ICore::libexecPath(),
|
||||||
QCoreApplication::applicationDirPath())});
|
Core::ICore::libexecPath().pathAppended("jom")});
|
||||||
if (!tmp.isEmpty())
|
if (!tmp.isEmpty())
|
||||||
command = tmp;
|
command = tmp;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user