From: LLVM Packaging Team Date: Thu, 19 Mar 2020 08:50:20 +0000 (+0000) Subject: fix-clang-path-and-build X-Git-Tag: archive/raspbian/1%8.0.1-9+rpi1^2~89 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0ae5ef68c09a662d7e2e5ae4051c1b69bd98fc70;p=llvm-toolchain-8.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 2ad45097d..a38cd4919 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -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