aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-07-17 17:33:03 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-18 11:15:58 +0200
commita451094914fe3df13d68e5c131014b82a71f7b50 (patch)
tree923aafe29add2567c343c5727399e55bf2da40b7 /src
parent22c5846e6cf12787439ea70ec7ee25b71fd82573 (diff)
fix up-to-date check wrt missing file dependencies
Missing file dependencies (e.g. header files that are not part of the project) must trigger a rebuild their dependents. Change-Id: I502e696d886c86a503e8950ae60254075f7e9415 Task-number: QBS-631 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index 8371ffad9..f6066e6ec 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -348,6 +348,13 @@ bool Executor::isUpToDate(Artifact *artifact) const
if (!fileDependency->timestamp().isValid()) {
FileInfo fi(fileDependency->filePath());
fileDependency->setTimestamp(fi.lastModified());
+ if (!fileDependency->timestamp().isValid()) {
+ if (m_doDebug) {
+ m_logger.qbsDebug() << "[UTD] file dependency doesn't exist "
+ << fileDependency->filePath();
+ }
+ return false;
+ }
}
if (m_doDebug) {
m_logger.qbsDebug() << "[UTD] file dependency timestamp "