]> granicus.if.org Git - clang/commitdiff
Take in account the triplet 'powerpc-linux-gnuspe' for PowerPC SPE. Done for the...
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 15 Mar 2013 16:22:43 +0000 (16:22 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 15 Mar 2013 16:22:43 +0000 (16:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177161 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 035af219759d3a9a32f83ce112b466b38ecb5983..665d61568e2475aee03e63a5eb77ff20baf25d68 100644 (file)
@@ -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();