diff options
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc index 0f16519..e1441ea 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -93,8 +93,10 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface, (*i)->dirty_ = true; } else { // May also be dirty due to the command changing since the last build. + // But if this is a generator rule, the command changing does not make us + // dirty. BuildLog::LogEntry* entry; - if (state->build_log_ && + if (!rule_->generator_ && state->build_log_ && (entry = state->build_log_->LookupByOutput((*i)->file_->path_))) { if (command != entry->command) (*i)->dirty_ = true; |