diff options
author | Richard Geary <richardg.work@gmail.com> | 2013-08-11 00:14:49 (GMT) |
---|---|---|
committer | Richard Geary <richardg.work@gmail.com> | 2013-08-11 00:15:22 (GMT) |
commit | b78b27cba23e3bd2fce1cea4bf33a85eb645113d (patch) | |
tree | e4cb106f0ba2cf03140d8b400de190a0969c943b /src/build.h | |
parent | 3f03746c458a92cfb6d2c8a89169ead8db5aaf1f (diff) | |
download | Ninja-b78b27cba23e3bd2fce1cea4bf33a85eb645113d.zip Ninja-b78b27cba23e3bd2fce1cea4bf33a85eb645113d.tar.gz Ninja-b78b27cba23e3bd2fce1cea4bf33a85eb645113d.tar.bz2 |
Fix for missing "no work to do." message if all build edges are phony rules.
Added NestedPhonyPrintsDone unit test
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h index 33df7d0..a872f6c 100644 --- a/src/build.h +++ b/src/build.h @@ -51,7 +51,7 @@ struct Plan { Edge* FindWork(); /// Returns true if there's more work to be done. - bool more_to_do() const { return wanted_edges_; } + bool more_to_do() const { return (command_edges_ > 0); } /// Dumps the current state of the plan. void Dump(); |