mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
Make -m32 work on FreeBSD/PowerPC64.
llvm-svn: 132634
This commit is contained in:
@@ -1007,6 +1007,11 @@ FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple)
|
||||
llvm::Triple::x86_64)
|
||||
Lib32 = true;
|
||||
|
||||
if (Triple.getArch() == llvm::Triple::ppc &&
|
||||
llvm::Triple(getDriver().DefaultHostTriple).getArch() ==
|
||||
llvm::Triple::ppc64)
|
||||
Lib32 = true;
|
||||
|
||||
if (Lib32) {
|
||||
getFilePaths().push_back("/usr/lib32");
|
||||
} else {
|
||||
|
||||
@@ -3460,6 +3460,8 @@ void freebsd::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
if (getToolChain().getArchName() == "i386")
|
||||
CmdArgs.push_back("--32");
|
||||
|
||||
if (getToolChain().getArchName() == "powerpc")
|
||||
CmdArgs.push_back("-a32");
|
||||
|
||||
// Set byte order explicitly
|
||||
if (getToolChain().getArchName() == "mips")
|
||||
|
||||
Reference in New Issue
Block a user