mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Recognize and handle ARM v7 target triples for Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e64e3cf9ad
commit
75d6ffd53f
@ -290,6 +290,11 @@ bool LTOCodeGenerator::assemble(const std::string& asmPath,
|
||||
args.push_back("-arch");
|
||||
args.push_back("armv6");
|
||||
}
|
||||
else if ((strncmp(targetTriple.c_str(), "armv7-apple-", 12) == 0) ||
|
||||
(strncmp(targetTriple.c_str(), "thumbv7-apple-", 14) == 0)) {
|
||||
args.push_back("-arch");
|
||||
args.push_back("armv7");
|
||||
}
|
||||
// add -static to assembler command line when code model requires
|
||||
if ( (_assemblerPath != NULL) && (_codeModel == LTO_CODEGEN_PIC_MODEL_STATIC) )
|
||||
args.push_back("-static");
|
||||
|
Loading…
x
Reference in New Issue
Block a user