diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2013-03-15 16:22:43 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-03-15 16:22:43 +0000 |
commit | b7e86be4412635d34b2bf161e1b8bbf00be055c9 (patch) | |
tree | 911c50d0b240d492c260540120ea56a60f418352 | |
parent | 7e0786f08e5e14776c8a46a0534c254b3fdc14fe (diff) | |
download | clang-b7e86be4412635d34b2bf161e1b8bbf00be055c9.tar.gz |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177161 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/ToolChains.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 035af21975..665d61568e 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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(); |