[cfe-commits] r119807 - /cfe/trunk/lib/Driver/ToolChains.cpp
Nuno Lopes
nunoplopes at sapo.pt
Fri Nov 19 09:26:57 PST 2010
Author: nlopes
Date: Fri Nov 19 11:26:57 2010
New Revision: 119807
URL: http://llvm.org/viewvc/llvm-project?rev=119807&view=rev
Log:
add support for the i686-pc-linux-gnu triple (used by Gentoo x86)
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=119807&r1=119806&r2=119807&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Fri Nov 19 11:26:57 2010
@@ -1340,6 +1340,8 @@
} else if (Arch == llvm::Triple::x86) {
if (llvm::sys::Path("/usr/lib/gcc/i686-linux-gnu").exists())
GccTriple = "i686-linux-gnu";
+ if (llvm::sys::Path("/usr/lib/gcc/i686-pc-linux-gnu").exists())
+ GccTriple = "i686-pc-linux-gnu";
else if (llvm::sys::Path("/usr/lib/gcc/i486-linux-gnu").exists())
GccTriple = "i486-linux-gnu";
else if (llvm::sys::Path("/usr/lib/gcc/i686-redhat-linux").exists())
More information about the cfe-commits
mailing list