Skip to content

Commit

Permalink
Merge pull request #2440 from jdrouhard/dry-run-fix
Browse files Browse the repository at this point in the history
fix: don't attempt to write and stat the lock file during dry runs
  • Loading branch information
jhasse authored May 6, 2024
2 parents 76ddc52 + 9f0f6ad commit 554579d
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 554579d

Please sign in to comment.