diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 01:32:25 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 01:32:25 (GMT) |
commit | b6b33fd295b2ed892f2d31a7d1b82dd21d7cf3bd (patch) | |
tree | 0c5f3f8b28dfab75b9a8b3b94cebdff516bd2885 /src/build_test.cc | |
parent | 51cab0b9dbbee5dc6a656a8f4ce15330f36a7a2c (diff) | |
download | Ninja-b6b33fd295b2ed892f2d31a7d1b82dd21d7cf3bd.zip Ninja-b6b33fd295b2ed892f2d31a7d1b82dd21d7cf3bd.tar.gz Ninja-b6b33fd295b2ed892f2d31a7d1b82dd21d7cf3bd.tar.bz2 |
add and use getter for Edge::rule_
Diffstat (limited to 'src/build_test.cc')
-rw-r--r-- | src/build_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index 0d4dce6..b1879ff 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -233,14 +233,14 @@ bool BuildTest::CanRunMore() { bool BuildTest::StartCommand(Edge* edge) { assert(!last_command_); commands_ran_.push_back(edge->EvaluateCommand()); - if (edge->rule_->name_ == "cat" || edge->rule_->name_ == "cc" || - edge->rule_->name_ == "touch") { + if (edge->rule().name_ == "cat" || edge->rule_->name_ == "cc" || + edge->rule().name_ == "touch") { for (vector<Node*>::iterator out = edge->outputs_.begin(); out != edge->outputs_.end(); ++out) { fs_.Create((*out)->file_->path_, now_, ""); } - } else if (edge->rule_->name_ == "true" || - edge->rule_->name_ == "fail") { + } else if (edge->rule().name_ == "true" || + edge->rule().name_ == "fail") { // Don't do anything. } else { printf("unknown command\n"); @@ -253,7 +253,7 @@ bool BuildTest::StartCommand(Edge* edge) { Edge* BuildTest::WaitForCommand(bool* success, string* output) { if (Edge* edge = last_command_) { - if (edge->rule_->name_ == "fail") + if (edge->rule().name_ == "fail") *success = false; else *success = true; |