forked from qt-creator/qt-creator
Qmake: Allow users to force a qmake run on every build
Some people are fine with paying the extra cost for the somewhat lower chance of an incremental build breakage. Fixes: QTCREATORBUG-20888 Change-Id: I96409dfbbc7c747cb01dacbf1efc2b10ee38d07a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "qmakeparser.h"
|
||||
#include "qmakeproject.h"
|
||||
#include "qmakeprojectmanagerconstants.h"
|
||||
#include "qmakesettings.h"
|
||||
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/buildsteplist.h>
|
||||
@@ -213,9 +214,10 @@ bool QMakeStep::init()
|
||||
}
|
||||
|
||||
// Check whether we need to run qmake
|
||||
bool makefileOutDated = (qmakeBc->compareToImportFrom(makefile) != QmakeBuildConfiguration::MakefileMatches);
|
||||
if (m_forced || makefileOutDated)
|
||||
if (m_forced || QmakeSettings::alwaysRunQmake()
|
||||
|| qmakeBc->compareToImportFrom(makefile) != QmakeBuildConfiguration::MakefileMatches) {
|
||||
m_needToRunQMake = true;
|
||||
}
|
||||
m_forced = false;
|
||||
|
||||
ProcessParameters *pp = processParameters();
|
||||
|
||||
Reference in New Issue
Block a user