[cfe-commits] [PATCH] multiarch directory support for debian based linux/ppc
Jeremy Huddleston
jeremyhu at apple.com
Sat Feb 25 22:36:13 PST 2012
On Feb 25, 2012, at 10:17 PM, Jeremy Huddleston <jeremyhu at apple.com> wrote:
> Could someone please commit this?
Actually please use this one instead. Michel's version was missing ppc64 support.
> Patch is from Debian (Michel Dänzer <daenzer at debian.org>).
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp (revision 151476)
+++ lib/Driver/ToolChains.cpp (working copy)
@@ -1962,6 +1962,14 @@
if (llvm::sys::fs::exists(SysRoot + "/lib/mipsel-linux-gnu"))
return "mipsel-linux-gnu";
return TargetTriple.str();
+ case llvm::Triple::ppc:
+ if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnu"))
+ return "powerpc-linux-gnu";
+ return TargetTriple.str();
+ case llvm::Triple::ppc64:
+ if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64-linux-gnu"))
+ return "powerpc64-linux-gnu";
+ return TargetTriple.str();
}
}
More information about the cfe-commits
mailing list