mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-18 06:46:38 +00:00
17 lines
987 B
Diff
17 lines
987 B
Diff
Index: llvm-toolchain-snapshot_3.5~svn201231/clang/lib/Driver/ToolChains.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn201231.orig/clang/lib/Driver/ToolChains.cpp 2014-02-12 13:12:51.069836368 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn201231/clang/lib/Driver/ToolChains.cpp 2014-02-12 13:12:51.065836368 +0100
|
|
@@ -3239,6 +3239,11 @@
|
|
const Multilib &Multilib = GCCInstallation.getMultilib();
|
|
const GCCVersion &Version = GCCInstallation.getVersion();
|
|
|
|
+#ifdef __i386__
|
|
+ // 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",
|
|
"/c++/" + Version.Text, TripleStr,
|
|
Multilib.includeSuffix(), DriverArgs, CC1Args))
|