fix-clang-path-and-build
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
Gbp-Pq: Name fix-clang-path-and-build.diff

clang/lib/Driver/ToolChains.cpp

index 9bc9ae4f6a523ff670d12360562075ed35cd0d13..189670ee5afb88c0fb91fa89981581749b091a38 100644 (file)
@@ -2952,6 +2952,7 @@ void Generic_GCC::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
     addLibStdCxxIncludePaths(DriverArgs, CC1Args);
     break;
   }
+  addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/");
 }
 
 std::string Generic_GCC::findLibCxxIncludePath() const {