mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
Adjust the linker for PowerPC64/-m32 on FreeBSD too.
llvm-svn: 132635
This commit is contained in:
@@ -3518,6 +3518,11 @@ void freebsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user