summaryrefslogtreecommitdiff
path: root/debian/patches/fix-clang-path-and-build.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-clang-path-and-build.diff')
-rw-r--r--debian/patches/fix-clang-path-and-build.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/fix-clang-path-and-build.diff b/debian/patches/fix-clang-path-and-build.diff
new file mode 100644
index 0000000..aa9d0ba
--- /dev/null
+++ b/debian/patches/fix-clang-path-and-build.diff
@@ -0,0 +1,13 @@
+Index: llvm-toolchain-snapshot_3.5~svn201651/clang/lib/Driver/ToolChains.cpp
+===================================================================
+--- llvm-toolchain-snapshot_3.5~svn201651.orig/clang/lib/Driver/ToolChains.cpp 2014-02-19 09:46:23.400300812 +0100
++++ llvm-toolchain-snapshot_3.5~svn201651/clang/lib/Driver/ToolChains.cpp 2014-02-19 09:46:35.377059510 +0100
+@@ -2326,6 +2326,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,