summaryrefslogtreecommitdiffstats
path: root/src/build.h
diff options
context:
space:
mode:
authorRichard Geary <richardg.work@gmail.com>2013-08-11 00:14:49 (GMT)
committerRichard Geary <richardg.work@gmail.com>2013-08-11 00:15:22 (GMT)
commitb78b27cba23e3bd2fce1cea4bf33a85eb645113d (patch)
treee4cb106f0ba2cf03140d8b400de190a0969c943b /src/build.h
parent3f03746c458a92cfb6d2c8a89169ead8db5aaf1f (diff)
downloadNinja-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.h2
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();