Bring back the path to libstdc++ under i386. Still not fixed upstream

(Closes: #730857)
This commit is contained in:
Sylvestre Ledru 2013-11-30 15:07:54 +00:00
parent 074d151904
commit ef6d417a81
2 changed files with 9 additions and 8 deletions

2
debian/changelog vendored
View File

@ -7,6 +7,8 @@ llvm-toolchain-3.4 (1:3.4~svn194079-1) UNRELEASED; urgency=low
See silent-MCJIIT-tests.diff
* Make lldb 3.4 also conflict with 3.5 (Closes: #730163)
* Make python-clang 3.4 also conflict with 3.5 (Closes: #730164)
* Bring back the path to libstdc++ under i386. Still not fixed upstream
(Closes: #730857)
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 26 Nov 2013 18:33:01 +0100

View File

@ -1,15 +1,14 @@
Index: llvm-toolchain-snapshot_3.4~svn193982/clang/lib/Driver/ToolChains.cpp
Index: llvm-toolchain-3.4-3.4~+rc1/clang/lib/Driver/ToolChains.cpp
===================================================================
--- llvm-toolchain-snapshot_3.4~svn193982.orig/clang/lib/Driver/ToolChains.cpp 2013-11-04 09:46:43.636669144 +0100
+++ llvm-toolchain-snapshot_3.4~svn193982/clang/lib/Driver/ToolChains.cpp 2013-11-04 09:46:43.636669144 +0100
@@ -2715,6 +2715,12 @@
--- llvm-toolchain-3.4-3.4~+rc1.orig/clang/lib/Driver/ToolChains.cpp 2013-11-30 15:03:35.257604848 +0000
+++ llvm-toolchain-3.4-3.4~+rc1/clang/lib/Driver/ToolChains.cpp 2013-11-30 15:04:14.793603425 +0000
@@ -2771,6 +2771,11 @@
StringRef BiarchSuffix = GCCInstallation.getBiarchSuffix();
const GCCVersion &Version = GCCInstallation.getVersion();
+#ifdef __i386__
+ // clang does not detect this path: /usr/include/i386-linux-gnu/c++/4.8/ Helphim
+// For now, comment this patch to make sure it is fixed upstream
+// addLibStdCXXIncludePaths( "/usr/include/", "/c++/" + Version.str(), "i386-linux-gnu", GCCInstallation.getMultiarchSuffix(), DriverArgs, CC1Args);
+ // clang does not detect this path: /usr/include/i386-linux-gnu/c++/4.8/ Help him
+ addLibStdCXXIncludePaths( "/usr/include/", "/c++/" + Version.str(), "i386-linux-gnu", GCCInstallation.getMultiarchSuffix(), DriverArgs, CC1Args);
+#endif
+
if (addLibStdCXXIncludePaths(LibDir.str() + "/../include",