diff --git a/src/project.cc b/src/project.cc index 753310bb..460a5e6f 100644 --- a/src/project.cc +++ b/src/project.cc @@ -114,7 +114,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry( ++i; continue; } - if (StartsWithAny(arg, kBlacklist)) + if (StartsWithAny(arg, kBlacklist) || arg == result.filename) continue; }