diff options
author | Mohamed Bamakhrama <mohamed.bamakhrama@intel.com> | 2015-03-01 23:57:33 (GMT) |
---|---|---|
committer | Mohamed Bamakhrama <mohamed.bamakhrama@intel.com> | 2015-03-01 23:57:33 (GMT) |
commit | f8f293730de2e12f6575c5d890a16504340f75fe (patch) | |
tree | f4544bb3ab1fea478c57a2892616a5761c5769f6 /src/state_test.cc | |
parent | c406d1c8adfedc1982e2c08ab95d581f65eb65de (diff) | |
download | Ninja-f8f293730de2e12f6575c5d890a16504340f75fe.zip Ninja-f8f293730de2e12f6575c5d890a16504340f75fe.tar.gz Ninja-f8f293730de2e12f6575c5d890a16504340f75fe.tar.bz2 |
Allow scoping rules through subninja
Ninja didn't support scoping rules through subninja and assumed
a unique rule name in the whole namespace. With this change, this
behavior is changed to allow scoping rules. Two rules can have the
same name if they belong to two different scopes. However, two
rules can NOT have the same name in the same scope.
Diffstat (limited to 'src/state_test.cc')
-rw-r--r-- | src/state_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state_test.cc b/src/state_test.cc index bd133b6..458b519 100644 --- a/src/state_test.cc +++ b/src/state_test.cc @@ -29,7 +29,7 @@ TEST(State, Basic) { Rule* rule = new Rule("cat"); rule->AddBinding("command", command); - state.AddRule(rule); + state.bindings_.AddRule(rule); Edge* edge = state.AddEdge(rule); state.AddIn(edge, "in1", 0); |