llvm-toolchain/debian/patches/fix-clang-path-and-build.diff
2017-03-10 12:07:35 +00:00

26 lines
1.0 KiB
Diff

---
clang/lib/Driver/ToolChains.cpp | 2 ++
1 file changed, 2 insertions(+)
Index: llvm-toolchain-snapshot_5.0~svn297449/clang/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- llvm-toolchain-snapshot_5.0~svn297449.orig/clang/lib/Driver/ToolChains/Gnu.cpp
+++ llvm-toolchain-snapshot_5.0~svn297449/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"
@@ -2306,6 +2307,8 @@ void Generic_GCC::AddClangCXXStdlibInclu
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: {
std::string Path = findLibCxxIncludePath();