forked from qt-creator/qt-creator
Fixes: - Make sure that we find make command for gdbmacros library.
Task: - 244273 Details: - We need to search in the path for it.
This commit is contained in:
@@ -124,7 +124,15 @@ void GdbMacrosBuildStep::run(QFutureInterface<bool> & fi)
|
|||||||
qmake.start(m_qmake, QStringList()<<"-spec"<<mkspec<<configarguments<<"gdbmacros.pro");
|
qmake.start(m_qmake, QStringList()<<"-spec"<<mkspec<<configarguments<<"gdbmacros.pro");
|
||||||
qmake.waitForFinished();
|
qmake.waitForFinished();
|
||||||
|
|
||||||
qmake.start(qt4Project->qtVersion(m_buildConfiguration)->makeCommand(), makeArguments);
|
QString makeCmd = qt4Project->qtVersion(m_buildConfiguration)->makeCommand();
|
||||||
|
if (!value(m_buildConfiguration, "makeCmd").toString().isEmpty())
|
||||||
|
makeCmd = value(m_buildConfiguration, "makeCmd").toString();
|
||||||
|
if (!QFileInfo(makeCmd).isAbsolute()) {
|
||||||
|
// Try to detect command in environment
|
||||||
|
QString tmp = qt4Project->environment(m_buildConfiguration).searchInPath(makeCmd);
|
||||||
|
makeCmd = tmp;
|
||||||
|
}
|
||||||
|
qmake.start(makeCmd, makeArguments);
|
||||||
qmake.waitForFinished();
|
qmake.waitForFinished();
|
||||||
|
|
||||||
fi.reportResult(true);
|
fi.reportResult(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user