summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/clean.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clean.cc b/src/clean.cc
index 6827352..ceffe64 100644
--- a/src/clean.cc
+++ b/src/clean.cc
@@ -293,7 +293,8 @@ void Cleaner::LoadDyndeps() {
// Load dyndep files that exist, before they are cleaned.
for (vector<Edge*>::iterator e = state_->edges_.begin();
e != state_->edges_.end(); ++e) {
- if (Node* dyndep = (*e)->dyndep_) {
+ Node* dyndep;
+ if ((dyndep = (*e)->dyndep_) && dyndep->dyndep_pending()) {
// Capture and ignore errors loading the dyndep file.
// We clean as much of the graph as we know.
std::string err;