fix-clang-path-and-build
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 2 Jun 2017 13:14:18 +0000 (13:14 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 2 Jun 2017 13:14:18 +0000 (13:14 +0000)
===================================================================

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

clang/lib/Driver/ToolChains.cpp

index 1b02f467c141a8e892fb2d9f8428070513bf2831..7844e7b41c2b64eea86b70af5ea657a9d99895d0 100644 (file)
@@ -3322,6 +3322,8 @@ void Haiku::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,