mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 12:50:42 +00:00
On darwin, 32-bit x86 target is i386-apple-darwin...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
641397f2ef
commit
f75e78900c
@ -224,7 +224,7 @@ bool LTOCodeGenerator::assemble(const std::string& asmPath,
|
||||
std::string targetTriple = _linker.getModule()->getTargetTriple();
|
||||
args.push_back(gcc.c_str());
|
||||
if ( targetTriple.find("darwin") != targetTriple.size() ) {
|
||||
if (strncmp(targetTriple.c_str(), "i686-apple-", 11) == 0) {
|
||||
if (strncmp(targetTriple.c_str(), "i386-apple-", 11) == 0) {
|
||||
args.push_back("-arch");
|
||||
args.push_back("i386");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user