summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/artifact.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2012-11-09 17:49:06 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2012-11-12 13:58:12 +0100
commitfc318ee469aa30667af73a2b96425762e4d7fb63 (patch)
tree9752c4988280a37c1f7892740eb81f83d1c9105c /src/lib/buildgraph/artifact.cpp
parent35098c7488444a0d5fef5ae99005d058e35dde15 (diff)
downloadqbs-fc318ee469aa30667af73a2b96425762e4d7fb63.tar.gz
Executor: out-of-date check revisited
Only for source artifacts and file dependencies the physical timestamp is retrieved. The timestamp of generated artifacts is the last build time of the artifact and is stored in Artifact::timestamp. Much simpler code and less stat'ing. Task-number: QBS-154 Change-Id: I96f23e911f221f1cf3af5a76df01593bb9a19033 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifact.cpp')
-rw-r--r--src/lib/buildgraph/artifact.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/buildgraph/artifact.cpp b/src/lib/buildgraph/artifact.cpp
index ee363d705..367f30234 100644
--- a/src/lib/buildgraph/artifact.cpp
+++ b/src/lib/buildgraph/artifact.cpp
@@ -60,9 +60,7 @@ Artifact::Artifact(BuildProject *p)
, artifactType(Unknown)
, buildState(Untouched)
, inputsScanned(false)
- , outOfDateCheckPerformed(false)
- , isOutOfDate(false)
- , isExistingFile(false)
+ , timestampRetrieved(false)
{
}
@@ -82,9 +80,10 @@ void Artifact::load(PersistentPool &pool)
fileTags = pool.idLoadStringSet();
properties = pool.idLoadS<PropertyMap>();
transformer = pool.idLoadS<Transformer>();
- quint8 n;
- pool.stream() >> artifactType >> n;
- inputsScanned = n;
+ pool.stream()
+ >> artifactType
+ >> timestamp
+ >> autoMocTimestamp;
}
void Artifact::store(PersistentPool &pool) const
@@ -93,7 +92,10 @@ void Artifact::store(PersistentPool &pool) const
pool.storeStringSet(fileTags);
pool.store(properties);
pool.store(transformer);
- pool.stream() << artifactType << static_cast<quint8>(inputsScanned);
+ pool.stream()
+ << artifactType
+ << timestamp
+ << autoMocTimestamp;
}
} // namespace Internal