mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 03:51:40 +00:00
17 lines
995 B
Diff
17 lines
995 B
Diff
Index: llvm-toolchain-snapshot_3.5~svn199197/clang/lib/Driver/ToolChains.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn199197.orig/clang/lib/Driver/ToolChains.cpp 2014-01-14 11:31:10.916868278 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn199197/clang/lib/Driver/ToolChains.cpp 2014-01-14 11:31:10.916868278 +0100
|
|
@@ -2830,6 +2830,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/ 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, BiarchSuffix,
|
|
MIPSABIDirSuffix, DriverArgs, CC1Args))
|