forked from OSchip/llvm-project
Add additional path to Linux toolchain. Patch by Will Dietz. PR10690.
llvm-svn: 137839
This commit is contained in:
parent
187e1e46f9
commit
872900987d
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue