From fb38537f20d71ad8b092d344af06f763798b6730 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 19 Nov 2017 14:46:26 -0800 Subject: [PATCH] Strip main source filename if it is a relative path in GetCompilationEntryFromCompileCommandEntry --- src/project.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }