From 98c701b2179ee2627edbd95c0d1cccfa1c82717d Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sat, 28 Oct 2017 14:51:36 -0700 Subject: [PATCH] Fix project loading absolute path normalization for clang_args --- src/project.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.cc b/src/project.cc index 5a8d796f..c694f91d 100644 --- a/src/project.cc +++ b/src/project.cc @@ -125,7 +125,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry( auto cleanup_maybe_relative_path = [&](const std::string& path) { assert(!path.empty()); - if (path[0] == '/') + if (path[0] == '/' || entry.directory.empty()) return NormalizePathWithTestOptOut(path); return NormalizePathWithTestOptOut(entry.directory + "/" + path); };