llvm-toolchain/debian/patches/fix-clang-path-and-build.diff
2014-01-16 10:59:28 +00:00

14 lines
692 B
Diff

Index: llvm-toolchain-snapshot_3.5~svn199370/clang/lib/Driver/ToolChains.cpp
===================================================================
--- llvm-toolchain-snapshot_3.5~svn199370.orig/clang/lib/Driver/ToolChains.cpp 2014-01-16 11:58:00.985443502 +0100
+++ llvm-toolchain-snapshot_3.5~svn199370/clang/lib/Driver/ToolChains.cpp 2014-01-16 11:58:00.985443502 +0100
@@ -2108,6 +2108,8 @@
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:
addSystemInclude(DriverArgs, CC1Args,