commit | e646984dc01a61265215c6647abf0a07fd6eb242 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Wed Jun 24 14:46:28 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Jun 25 17:51:01 2015 +0900 |
tree | a5a4ba925aaa41cd3c6d0bbb57d8599d2f145ee4 | |
parent | c195f400f44ca6dd271911367746a083e75266d8 [diff] |
[C++] Fix empty_output.mk
diff --git a/rule.cc b/rule.cc index 38a0da7..f37ff40 100644 --- a/rule.cc +++ b/rule.cc
@@ -74,8 +74,7 @@ outputs.push_back(Intern(TrimLeadingCurdir(tok))); } - CHECK(!outputs.empty()); - const bool is_first_pattern = IsPatternRule(outputs[0]); + const bool is_first_pattern = !outputs.empty() && IsPatternRule(outputs[0]); if (is_first_pattern) { if (outputs.size() > 1) { // TODO: Multiple output patterns are not supported yet.