fix-clang-path-and-build
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 16 Dec 2018 12:07:54 +0000 (12:07 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 16 Dec 2018 12:07:54 +0000 (12:07 +0000)
Gbp-Pq: Name fix-clang-path-and-build.diff

clang/lib/Driver/ToolChains/Gnu.cpp

index 66fa21402d71c1c16efbe95e059f01bf91895e47..0caee63e8a1f977701b3ff20c42bd640fc5ab935 100644 (file)
@@ -17,6 +17,7 @@
 #include "CommonArgs.h"
 #include "Linux.h"
 #include "clang/Basic/VirtualFileSystem.h"
+#include "clang/Basic/Version.h"
 #include "clang/Config/config.h" // for GCC_INSTALL_PREFIX
 #include "clang/Driver/Compilation.h"
 #include "clang/Driver/Driver.h"
@@ -2444,6 +2445,7 @@ void Generic_GCC::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
     addLibStdCxxIncludePaths(DriverArgs, CC1Args);
     break;
   }
+  addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/");
 }
 
 void