diff options
author | Brad King <brad.king@kitware.com> | 2015-11-30 18:56:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-18 12:21:44 (GMT) |
commit | 325602ca41c76753470b991c7a47b76b15e4241b (patch) | |
tree | 3a0fe810e629519ca8ba32510c515827e08eb852 /src/state.cc | |
parent | b08f3fb86909bf5b890e33936cf8fd44e1cbff47 (diff) | |
download | Ninja-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.cc | 1 |
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; } } |