Skip to content

Commit 9f0f6ad

Browse files
committed
fix: don't attempt to write and stat the lock file during dry runs
1 parent 76ddc52 commit 9f0f6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ bool Builder::StartEdge(Edge* edge, string* err) {
846846

847847
status_->BuildEdgeStarted(edge, start_time_millis);
848848

849-
TimeStamp build_start = -1;
849+
TimeStamp build_start = config_.dry_run ? 0 : -1;
850850

851851
// Create directories necessary for outputs and remember the current
852852
// filesystem mtime to record later

0 commit comments

Comments
 (0)