From 27f1ce6a09f3ca13abdaed2c942ea1ab8ba3d306 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 22 Feb 2020 11:51:16 +0100 Subject: [PATCH] MacOS: cleanup of libclang include folders --- src/compile_commands.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compile_commands.cc b/src/compile_commands.cc index f868f04..111488a 100644 --- a/src/compile_commands.cc +++ b/src/compile_commands.cc @@ -144,10 +144,8 @@ std::vector CompileCommands::get_arguments(const boost::filesystem: arguments.emplace_back("-I/usr/lib64/clang/" + clang_version + "/include"); // For Fedora #if defined(__APPLE__) // Missing include and framework folders for MacOS: - arguments.emplace_back("-I/usr/local/Cellar/llvm/" + clang_version + "/include/c++/v1"); - arguments.emplace_back("-I/usr/local/Cellar/llvm/" + clang_version + "_1/include/c++/v1"); // Missing include folder in llvm 9.0.0_1 - arguments.emplace_back("-I/usr/local/Cellar/llvm/" + clang_version + "/lib/clang/" + clang_version + "/include"); - arguments.emplace_back("-I/usr/local/Cellar/llvm/" + clang_version + "_1/lib/clang/" + clang_version + "/include"); // Missing include folder in llvm 9.0.0_1 + arguments.emplace_back("-I/usr/local/opt/llvm/include/c++/v1"); + arguments.emplace_back("-I/usr/local/opt/llvm/lib/clang/" + clang_version + "/include"); arguments.emplace_back("-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"); arguments.emplace_back("-F/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"); #endif