forked from qt-creator/qt-creator
qmake: make discard_from() patch up QMAKE_INTERNAL_INCLUDED_FILES as well
when the file's effects are discarded, the mention of the file should be as well. Change-Id: I894b7e2b887dd34d18533b197bfa9d0d84d647e7 (cherry picked from qtbase/c05f0a83fdb4823604d76f61bb884e206887e704) Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -1375,6 +1375,10 @@ QMakeEvaluator::VisitReturn QMakeEvaluator::evaluateBuiltinConditional(
|
|||||||
++fit;
|
++fit;
|
||||||
}
|
}
|
||||||
pro->deref();
|
pro->deref();
|
||||||
|
ProStringList &iif = m_valuemapStack.first()[ProKey("QMAKE_INTERNAL_INCLUDED_FILES")];
|
||||||
|
int idx = iif.indexOf(ProString(fn));
|
||||||
|
if (idx >= 0)
|
||||||
|
iif.removeAt(idx);
|
||||||
return ReturnTrue;
|
return ReturnTrue;
|
||||||
}
|
}
|
||||||
case T_INFILE:
|
case T_INFILE:
|
||||||
|
|||||||
Reference in New Issue
Block a user