--- clang/lib/Driver/ToolChains.cpp | 2 ++ 1 file changed, 2 insertions(+) Index: llvm-toolchain-snapshot_9~svn351647/clang/lib/Driver/ToolChains/Gnu.cpp =================================================================== --- llvm-toolchain-snapshot_9~svn351647.orig/clang/lib/Driver/ToolChains/Gnu.cpp +++ llvm-toolchain-snapshot_9~svn351647/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++ +//-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -15,6 +16,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" @@ -2534,6 +2536,7 @@ void Generic_GCC::AddClangCXXStdlibInclu addLibStdCxxIncludePaths(DriverArgs, CC1Args); break; } + addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/"); } void