diff options
author | Brad King <brad.king@kitware.com> | 2015-06-19 15:47:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-18 12:21:44 (GMT) |
commit | b08f3fb86909bf5b890e33936cf8fd44e1cbff47 (patch) | |
tree | eda7529eece89180f27cbc1421dfc72dbada12c1 /src/build.h | |
parent | 083a9e2e7af813571444e33fad5f0f373bce7e3f (diff) | |
download | Ninja-b08f3fb86909bf5b890e33936cf8fd44e1cbff47.zip Ninja-b08f3fb86909bf5b890e33936cf8fd44e1cbff47.tar.gz Ninja-b08f3fb86909bf5b890e33936cf8fd44e1cbff47.tar.bz2 |
Make a Builder optionally available to Plan
In order to later support dynamic updates to the build plan while
building, the Plan will need access to its Builder. Since this access
will be needed only for specific features we can avoid updating all Plan
constructions in the test suite by making this access optional.
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h index 05f8110..1b596b3 100644 --- a/src/build.h +++ b/src/build.h @@ -32,6 +32,7 @@ struct BuildLog; struct BuildStatus; +struct Builder; struct DiskInterface; struct Edge; struct Node; @@ -40,7 +41,7 @@ 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(); + Plan(Builder* builder = NULL); /// Add a target to our plan (including all its dependencies). /// Returns false if we don't need to build this target; may @@ -112,6 +113,8 @@ private: set<Edge*> ready_; + Builder* builder_; + /// Total number of edges that have commands (not phony). int command_edges_; |