diff options
author | Evan Martin <martine@danga.com> | 2011-01-08 23:15:55 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-08 23:15:55 (GMT) |
commit | 1ae23fd19a7f15ece3623e3fa23f882755d5c5be (patch) | |
tree | 14a9a8d6b374cfae3a0cadea663dcec464dacc7e | |
parent | 3e1cbd603bb749d75354615af60a29ede5cdfff3 (diff) | |
download | Ninja-1ae23fd19a7f15ece3623e3fa23f882755d5c5be.zip Ninja-1ae23fd19a7f15ece3623e3fa23f882755d5c5be.tar.gz Ninja-1ae23fd19a7f15ece3623e3fa23f882755d5c5be.tar.bz2 |
don't get stuck on phony edges
-rw-r--r-- | src/build.cc | 3 |
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) { |