fix-clang-path-and-build
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 19 Mar 2020 08:50:20 +0000 (08:50 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 19 Mar 2020 08:50:20 +0000 (08:50 +0000)
Gbp-Pq: Name fix-clang-path-and-build.diff

clang/lib/Driver/ToolChains/Gnu.cpp

index 2ad45097dce8ce6aebeba5b13349cf9c27e672b0..a38cd491919d031e0cc9043cd91d57f7f9e65154 100644 (file)
@@ -1,4 +1,5 @@
-//===--- Gnu.cpp - Gnu Tool and ToolChain Implementations -------*- C++ -*-===//
+//===--- Gnu.cpp - Gnu Tool and ToolChain Implementations -------*- C++ 
+//-*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -16,6 +17,7 @@
 #include "Arch/SystemZ.h"
 #include "CommonArgs.h"
 #include "Linux.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"
@@ -2535,6 +2537,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