Strip main source filename if it is a relative path in GetCompilationEntryFromCompileCommandEntry

This commit is contained in:
Fangrui Song 2017-11-19 14:46:26 -08:00 committed by Jacob Dufault
parent de1de3e51a
commit fb38537f20

View File

@ -114,7 +114,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
++i;
continue;
}
if (StartsWithAny(arg, kBlacklist))
if (StartsWithAny(arg, kBlacklist) || arg == result.filename)
continue;
}