diff options
| author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-24 14:46:28 +0900 |
|---|---|---|
| committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-25 17:51:01 +0900 |
| commit | e646984dc01a61265215c6647abf0a07fd6eb242 (patch) | |
| tree | a5a4ba925aaa41cd3c6d0bbb57d8599d2f145ee4 /rule.cc | |
| parent | c195f400f44ca6dd271911367746a083e75266d8 (diff) | |
[C++] Fix empty_output.mk
Diffstat (limited to 'rule.cc')
| -rw-r--r-- | rule.cc | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -74,8 +74,7 @@ void ParseRule(Loc& loc, StringPiece line, char term, 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. |
