[cfe-commits] r137839 - /cfe/trunk/lib/Driver/ToolChains.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Aug 17 11:17:26 PDT 2011
Author: efriedma
Date: Wed Aug 17 13:17:26 2011
New Revision: 137839
URL: http://llvm.org/viewvc/llvm-project?rev=137839&view=rev
Log:
Add additional path to Linux toolchain. Patch by Will Dietz. PR10690.
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=137839&r1=137838&r2=137839&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Aug 17 13:17:26 2011
@@ -1564,6 +1564,9 @@
else if (!llvm::sys::fs::exists("/usr/lib/x86_64-linux-gnu/gcc",
Exists) && Exists)
GccTriple = "x86_64-linux-gnu";
+ else if (!llvm::sys::fs::exists("/usr/lib64/gcc/x86_64-slackware-linux", Exists)
+ && Exists)
+ GccTriple = "x86_64-slackware-linux";
} else if (Arch == llvm::Triple::x86) {
if (!llvm::sys::fs::exists("/usr/lib/gcc/i686-linux-gnu", Exists) && Exists)
GccTriple = "i686-linux-gnu";
More information about the cfe-commits
mailing list