make CONFIG feature evaluation failure non-fatal in cumulative mode
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Mon, 2 Sep 2013 14:52:47 +0000 (16:52 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 4 Sep 2013 09:47:10 +0000 (11:47 +0200)
while we evaluate the features themselves in precise mode (which is the
reason why they can error out), we do not want them to terminate
cumulative project evaluation.

Change-Id: I70f3e1bcb2ca04a70c74ff484749ca92c1cf6372
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/shared/qmakeevaluator.cpp

index 8cbd7b9..4d4a1e8 100644 (file)
@@ -1287,7 +1287,7 @@ QMakeEvaluator::VisitReturn QMakeEvaluator::evaluateConfigFeatures()
                 config.detach();
                 processed.insert(config);
                 VisitReturn vr = evaluateFeatureFile(config, true);
-                if (vr == ReturnError)
+                if (vr == ReturnError && !m_cumulative)
                     return vr;
                 if (vr == ReturnTrue) {
                     finished = false;