llvm.org GIT mirror llvm / 59c8d8a
Supply appropriate arch info to darwin assembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46567 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
488488
489489 std::vector args;
490490 args.push_back(gcc.c_str());
491 if (strncmp(targetTriple.c_str(), "i686-apple-", 11) == 0) {
492 args.push_back("-arch");
493 args.push_back("i386");
494 }
495 if (strncmp(targetTriple.c_str(), "x86_64-apple-", 13) == 0) {
496 args.push_back("-arch");
497 args.push_back("x86_64");
498 }
499 if (strncmp(targetTriple.c_str(), "powerpc-apple-", 14) == 0) {
500 args.push_back("-arch");
501 args.push_back("ppc");
502 }
503 if (strncmp(targetTriple.c_str(), "powerpc64-apple-", 16) == 0) {
504 args.push_back("-arch");
505 args.push_back("ppc64");
506 }
491507 args.push_back("-c");
492508 args.push_back("-x");
493509 args.push_back("assembler");