diff --git a/src/build.cc b/src/build.cc index 6587d1bd6c..fca119c17b 100644 --- a/src/build.cc +++ b/src/build.cc @@ -846,7 +846,7 @@ bool Builder::StartEdge(Edge* edge, string* err) { status_->BuildEdgeStarted(edge, start_time_millis); - TimeStamp build_start = -1; + TimeStamp build_start = config_.dry_run ? 0 : -1; // Create directories necessary for outputs and remember the current // filesystem mtime to record later