fix-clang-path-and-build
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 25 Apr 2017 17:46:34 +0000 (17:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 25 Apr 2017 17:46:34 +0000 (17:46 +0000)
===================================================================

Gbp-Pq: Name fix-clang-path-and-build.diff

clang/lib/Driver/ToolChains.cpp

index 99c7b8e68c6167a9cc82be4673df80c4ceab8f29..ddf23815cedc3a6b4fb4e7feca9057aaaf2917ea 100644 (file)
@@ -3019,6 +3019,8 @@ void Bitrig::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
       DriverArgs.hasArg(options::OPT_nostdincxx))
     return;
 
+  addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/");
+
   switch (GetCXXStdlibType(DriverArgs)) {
   case ToolChain::CST_Libcxx:
     addSystemInclude(DriverArgs, CC1Args,