summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-01-08 23:15:55 (GMT)
committerEvan Martin <martine@danga.com>2011-01-08 23:15:55 (GMT)
commit1ae23fd19a7f15ece3623e3fa23f882755d5c5be (patch)
tree14a9a8d6b374cfae3a0cadea663dcec464dacc7e
parent3e1cbd603bb749d75354615af60a29ede5cdfff3 (diff)
downloadNinja-1ae23fd19a7f15ece3623e3fa23f882755d5c5be.zip
Ninja-1ae23fd19a7f15ece3623e3fa23f882755d5c5be.tar.gz
Ninja-1ae23fd19a7f15ece3623e3fa23f882755d5c5be.tar.bz2
don't get stuck on phony edges
-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) {