Skip to content

Commit

Permalink
fix: don't attempt to write and stat the lock file during dry runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrouhard committed May 5, 2024
1 parent 76ddc52 commit 9f0f6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f0f6ad

Please # to comment.