From: LLVM Packaging Team Date: Sat, 9 Dec 2017 18:56:52 +0000 (+0000) Subject: fix-clang-path-and-build X-Git-Tag: archive/raspbian/1%5.0.1-2+rpi1^2^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6ad14a23d348e34d145da9768a667ea776abcfe1;p=llvm-toolchain-5.0.git fix-clang-path-and-build Gbp-Pq: Name fix-clang-path-and-build.diff --- diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index 72a9f85ba..1d12cc9dc 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -15,6 +15,7 @@ #include "Arch/SystemZ.h" #include "CommonArgs.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" @@ -2368,6 +2369,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 {