Stop parsing a define with value at the '='. (#937)

This commit is contained in:
Gennady Feldman 2017-08-09 14:02:25 -04:00 committed by Daniel Marjamäki
parent b8cd7dbb5c
commit 1c71c789d6
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ void ImportProject::importCompileCommands(std::istream &istr)
break;
char F = command[pos++];
std::string fval;
while (pos < command.size() && command[pos] != ' ') {
while (pos < command.size() && command[pos] != ' ' && command[pos] != '=') {
if (command[pos] != '\\')
fval += command[pos];
pos++;