summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-30 18:56:04 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-18 12:21:44 (GMT)
commit325602ca41c76753470b991c7a47b76b15e4241b (patch)
tree3a0fe810e629519ca8ba32510c515827e08eb852 /src/state.cc
parentb08f3fb86909bf5b890e33936cf8fd44e1cbff47 (diff)
downloadNinja-325602ca41c76753470b991c7a47b76b15e4241b.zip
Ninja-325602ca41c76753470b991c7a47b76b15e4241b.tar.gz
Ninja-325602ca41c76753470b991c7a47b76b15e4241b.tar.bz2
Explicitly avoid repeat deps loading
Track for each Edge whether depfile information has been loaded using an explicit flag. This will allow RecomputeDirty to be repeated for an edge without loading deps again.
Diffstat (limited to 'src/state.cc')
-rw-r--r--src/state.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.cc b/src/state.cc
index 9b3c7e1..74cf4c1 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -186,6 +186,7 @@ void State::Reset() {
i->second->ResetState();
for (vector<Edge*>::iterator e = edges_.begin(); e != edges_.end(); ++e) {
(*e)->outputs_ready_ = false;
+ (*e)->deps_loaded_ = false;
(*e)->mark_ = Edge::VisitNone;
}
}