llvm-toolchain/debian/patches/fix-clang-path-and-build.diff
Sylvestre Ledru 228ad20aa7 * Change the versioning from X.Y to X as upstream is using
X.Y.Z and X
  I am keeping the epoch because it would be too complex to manage
  with the various updates scenario
* Two new symbols in libclang
  - clang_getFileContents
  - clang_isInvalidDeclaration
* Fix the VCS-* tags
2018-01-18 19:44:15 +00:00

25 lines
969 B
Diff

---
clang/lib/Driver/ToolChains.cpp | 2 ++
1 file changed, 2 insertions(+)
Index: llvm-toolchain-snapshot_7~svn322673/clang/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- llvm-toolchain-snapshot_7~svn322673.orig/clang/lib/Driver/ToolChains/Gnu.cpp
+++ llvm-toolchain-snapshot_7~svn322673/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -17,6 +17,7 @@
#include "CommonArgs.h"
#include "Linux.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"
@@ -2334,6 +2335,7 @@ void Generic_GCC::AddClangCXXStdlibInclu
addLibStdCxxIncludePaths(DriverArgs, CC1Args);
break;
}
+ addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/");
}
std::string Generic_GCC::findLibCxxIncludePath() const {