1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

On darwin, 32-bit x86 target is i386-apple-darwin...

llvm-svn: 58731
This commit is contained in:
Devang Patel 2008-11-04 23:13:50 +00:00
parent a5d766c285
commit bc0cbd20b0

View File

@ -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");
}