diff options
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/build.cc b/src/build.cc index bf897a3..2eb08cb 100644 --- a/src/build.cc +++ b/src/build.cc @@ -32,13 +32,13 @@ void BuildStatus::PlanHasTotalEdges(int total) { } void BuildStatus::BuildEdgeStarted(Edge* edge) { + if (edge->rule_ == &State::kPhonyRule) + return; + timeval now; gettimeofday(&now, NULL); running_edges_.insert(make_pair(edge, now)); - if (edge->rule_ == &State::kPhonyRule) - return; - string desc = edge->GetDescription(); if (verbosity_ != BuildConfig::QUIET) { if (verbosity_ != BuildConfig::VERBOSE && !desc.empty()) @@ -49,6 +49,9 @@ void BuildStatus::BuildEdgeStarted(Edge* edge) { } void BuildStatus::BuildEdgeFinished(Edge* edge) { + if (edge->rule_ == &State::kPhonyRule) + return; + timeval now; gettimeofday(&now, NULL); ++finished_edges_; |