summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/build.cc b/src/build.cc
index 2eb08cb..50c7eef 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -318,6 +318,9 @@ bool Builder::Build(string* err) {
FinishEdge(edge);
}
+ if (!plan_.more_to_do())
+ break;
+
bool success;
if (Edge* edge = command_runner_->NextFinishedCommand(&success)) {
if (!success) {