fix-clang-path-and-build.diff 917 Bytes
Newer Older
1 2 3 4
---
 clang/lib/Driver/ToolChains.cpp |    2 ++
 1 file changed, 2 insertions(+)

Sylvestre Ledru's avatar
Sylvestre Ledru committed
5
Index: llvm-toolchain-snapshot_7~svn329789/clang/lib/Driver/ToolChains/Gnu.cpp
Sylvestre Ledru's avatar
Sylvestre Ledru committed
6
===================================================================
Sylvestre Ledru's avatar
Sylvestre Ledru committed
7 8
--- llvm-toolchain-snapshot_7~svn329789.orig/clang/lib/Driver/ToolChains/Gnu.cpp
+++ llvm-toolchain-snapshot_7~svn329789/clang/lib/Driver/ToolChains/Gnu.cpp
9
@@ -17,6 +17,7 @@
Sylvestre Ledru's avatar
Sylvestre Ledru committed
10
 #include "CommonArgs.h"
11
 #include "Linux.h"
Sylvestre Ledru's avatar
Sylvestre Ledru committed
12 13 14 15 16
 #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"
Sylvestre Ledru's avatar
Sylvestre Ledru committed
17
@@ -2399,6 +2400,7 @@ void Generic_GCC::AddClangCXXStdlibInclu
18 19 20
     addLibStdCxxIncludePaths(DriverArgs, CC1Args);
     break;
   }
21
+  addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/");
22 23
 }
 
Sylvestre Ledru's avatar
Sylvestre Ledru committed
24
 void