Add additional path to Linux toolchain. Patch by Will Dietz. PR10690.

llvm-svn: 137839
This commit is contained in:
Eli Friedman 2011-08-17 18:17:26 +00:00
parent 187e1e46f9
commit 872900987d
1 changed files with 3 additions and 0 deletions

View File

@ -1564,6 +1564,9 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
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";