diff options
author | Evan Martin <martine@danga.com> | 2012-10-27 20:09:40 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-12-29 20:34:25 (GMT) |
commit | 13dd08c1a03e5a8f4299816fbd3af1b6cb6d9642 (patch) | |
tree | 9564593d47936d2e47d88e344c2f6915ba8753a3 /src/state.cc | |
parent | 3249938cdf574058a066436aea06b0541ded6958 (diff) | |
download | Ninja-13dd08c1a03e5a8f4299816fbd3af1b6cb6d9642.zip Ninja-13dd08c1a03e5a8f4299816fbd3af1b6cb6d9642.tar.gz Ninja-13dd08c1a03e5a8f4299816fbd3af1b6cb6d9642.tar.bz2 |
rearrange handling of builtin bindings to make rules simpler
Now, a 'build' block can override any special binding like 'command'
or 'description' if it needs to.
Diffstat (limited to 'src/state.cc')
-rw-r--r-- | src/state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cc b/src/state.cc index bb0cc15..b5d2622 100644 --- a/src/state.cc +++ b/src/state.cc @@ -91,10 +91,10 @@ Pool* State::LookupPool(const string& pool_name) { return i->second; } -Edge* State::AddEdge(const Rule* rule, Pool* pool) { +Edge* State::AddEdge(const Rule* rule) { Edge* edge = new Edge(); edge->rule_ = rule; - edge->pool_ = pool; + edge->pool_ = &State::kDefaultPool; edge->env_ = &bindings_; edges_.push_back(edge); return edge; |