[cfe-commits] r132635 - /cfe/trunk/lib/Driver/Tools.cpp
Roman Divacky
rdivacky at freebsd.org
Sat Jun 4 00:40:25 PDT 2011
Author: rdivacky
Date: Sat Jun 4 02:40:24 2011
New Revision: 132635
URL: http://llvm.org/viewvc/llvm-project?rev=132635&view=rev
Log:
Adjust the linker for PowerPC64/-m32 on FreeBSD too.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=132635&r1=132634&r2=132635&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Jun 4 02:40:24 2011
@@ -3518,6 +3518,11 @@
CmdArgs.push_back("elf_i386_fbsd");
}
+ if (getToolChain().getArchName() == "powerpc") {
+ CmdArgs.push_back("-m");
+ CmdArgs.push_back("elf32ppc");
+ }
+
if (Output.isFilename()) {
CmdArgs.push_back("-o");
CmdArgs.push_back(Output.getFilename());
More information about the cfe-commits
mailing list