forked from OSchip/llvm-project
Take in account the triplet 'powerpc-linux-gnuspe' for PowerPC SPE. Done for the port of Debian on this arch. More information on: http://wiki.debian.org/PowerPCSPEPort Patch by Roland Stigge
llvm-svn: 177161
This commit is contained in:
parent
8d7fbc9dad
commit
e0bf581a81
|
@ -1149,6 +1149,7 @@ Generic_GCC::GCCInstallationDetector::GCCInstallationDetector(
|
|||
static const char *const PPCTriples[] = {
|
||||
"powerpc-linux-gnu",
|
||||
"powerpc-unknown-linux-gnu",
|
||||
"powerpc-linux-gnuspe",
|
||||
"powerpc-suse-linux",
|
||||
"powerpc-montavista-linuxspe"
|
||||
};
|
||||
|
@ -2255,6 +2256,8 @@ static std::string getMultiarchTriple(const llvm::Triple TargetTriple,
|
|||
return "mipsel-linux-gnu";
|
||||
return TargetTriple.str();
|
||||
case llvm::Triple::ppc:
|
||||
if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnuspe"))
|
||||
return "powerpc-linux-gnuspe";
|
||||
if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnu"))
|
||||
return "powerpc-linux-gnu";
|
||||
return TargetTriple.str();
|
||||
|
|
Loading…
Reference in New Issue