llvm.org GIT mirror llvm / f75e789
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 Devang Patel 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
223223 std::string targetTriple = _linker.getModule()->getTargetTriple();
224224 args.push_back(gcc.c_str());
225225 if ( targetTriple.find("darwin") != targetTriple.size() ) {
226 if (strncmp(targetTriple.c_str(), "i686-apple-", 11) == 0) {
226 if (strncmp(targetTriple.c_str(), "i386-apple-", 11) == 0) {
227227 args.push_back("-arch");
228228 args.push_back("i386");
229229 }