commit | 2bed770578c05fde7a05d2f11782bfd167abd43c | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Fri Jun 26 07:56:28 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Fri Jun 26 16:42:24 2015 +0900 |
tree | b3c5f04b90d15277cac6940accf7cc72c83f4fb8 | |
parent | b4f83dbdab22758f95fc95f979b003aacaf15a85 [diff] |
[C++] Fix err_no_target_commands.mk
diff --git a/parser.cc b/parser.cc index 9e3ec85..57c0a3a 100644 --- a/parser.cc +++ b/parser.cc
@@ -189,6 +189,8 @@ sep += orig_line_with_directives_.size() - line.size(); } line = orig_line_with_directives_; + } else if (orig_line_with_directives_[0] == '\t') { + Error("*** commands commence before first target."); } const bool is_rule = sep != string::npos && line[sep] == ':';