[cfe-commits] [PATCH] multiarch directory support for debian based linux/ppc
Jeremy Huddleston
jeremyhu at apple.com
Sat Feb 25 22:17:02 PST 2012
Could someone please commit this?
Patch is from Debian (Michel Dänzer <daenzer at debian.org>).
Thanks,
Jeremy
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp (revision 151476)
+++ lib/Driver/ToolChains.cpp (working copy)
@@ -1962,6 +1962,10 @@
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();
}
}
More information about the cfe-commits
mailing list