diff options
author | Evan Martin <martine@danga.com> | 2011-02-05 19:29:04 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-02-05 19:29:04 (GMT) |
commit | b9a26e0e5d1045f5814e3ce6341647c92045e3c3 (patch) | |
tree | 55eb7e103068c4a8377fa567cc0a0fc2381d608e /src/build.h | |
parent | 6f3054b9bbfa000510eb0d4d7ca8ae567d186e55 (diff) | |
download | Ninja-b9a26e0e5d1045f5814e3ce6341647c92045e3c3.zip Ninja-b9a26e0e5d1045f5814e3ce6341647c92045e3c3.tar.gz Ninja-b9a26e0e5d1045f5814e3ce6341647c92045e3c3.tar.bz2 |
fancier output
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/build.h b/src/build.h index a1d6d4c..618cc28 100644 --- a/src/build.h +++ b/src/build.h @@ -15,6 +15,8 @@ struct State; // Plan stores the state of a build plan: what we intend to build, // which steps we're ready to execute. struct Plan { + Plan(); + // Add a target to our plan (including all its dependencies). // Returns false if we don't need to build this target; may // fill in |err| with an error message if there's a problem. @@ -34,8 +36,8 @@ struct Plan { // tests. void EdgeFinished(Edge* edge); - // Number of edges to run. - int edge_count() const { return want_.size(); } + // Number of edges with commands to run. + int command_edge_count() const { return command_edges_; } private: bool AddSubTarget(Node* node, vector<Node*>* stack, string* err); @@ -44,6 +46,9 @@ private: set<Edge*> want_; set<Edge*> ready_; + + // Total number of edges that have commands (not phony). + int command_edges_; }; // CommandRunner is an interface that wraps running the build |