[cfe-commits] r146016 - /cfe/trunk/lib/Driver/ToolChains.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Dec 6 20:00:54 PST 2011
Author: efriedma
Date: Tue Dec 6 22:00:53 2011
New Revision: 146016
URL: http://llvm.org/viewvc/llvm-project?rev=146016&view=rev
Log:
Fix multilib library paths on ppc64 Linux. Patch by Michael Kostylev. PR11472.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=146016&r1=146015&r2=146016&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Dec 6 22:00:53 2011
@@ -1894,8 +1894,15 @@
getArch() == llvm::Triple::mipsel ||
getArch() == llvm::Triple::ppc);
- const std::string Suffix32 = Arch == llvm::Triple::x86_64 ? "/32" : "";
- const std::string Suffix64 = Arch == llvm::Triple::x86_64 ? "" : "/64";
+ StringRef Suffix32;
+ StringRef Suffix64;
+ if (Arch == llvm::Triple::x86_64 || Arch == llvm::Triple::ppc64) {
+ Suffix32 = "/32";
+ Suffix64 = "";
+ } else {
+ Suffix32 = "";
+ Suffix64 = "/64";
+ }
const std::string Suffix = Is32Bits ? Suffix32 : Suffix64;
const std::string Multilib = Is32Bits ? "lib32" : "lib64";
const std::string MultiarchTriple = getMultiarchTriple(Triple, SysRoot);
More information about the cfe-commits
mailing list