diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-04 18:35:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-04 18:35:21 +0000 |
commit | 84e727fb726a80d96835aae0736095cde83882b9 (patch) | |
tree | 8d8c179c18e342fcfe636c47efe068946730d528 /clang/lib/Driver/HostInfo.cpp | |
parent | 56b534d2d6b24d7aa293b0c4f40aadf34605bc3a (diff) | |
download | bcm5719-llvm-84e727fb726a80d96835aae0736095cde83882b9.tar.gz bcm5719-llvm-84e727fb726a80d96835aae0736095cde83882b9.zip |
Darwin: Pass -iphoneos-version-min to ld when building for ARM.
llvm-svn: 81019
Diffstat (limited to 'clang/lib/Driver/HostInfo.cpp')
-rw-r--r-- | clang/lib/Driver/HostInfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clang/lib/Driver/HostInfo.cpp b/clang/lib/Driver/HostInfo.cpp index 89a3f8f49ef..305c7ccb1b5 100644 --- a/clang/lib/Driver/HostInfo.cpp +++ b/clang/lib/Driver/HostInfo.cpp @@ -155,11 +155,18 @@ ToolChain *DarwinHostInfo::getToolChain(const ArgList &Args, if (!TC) { llvm::Triple TCTriple(getTriple()); TCTriple.setArchName(ArchName); - + if (strcmp(ArchName, "i386") == 0 || strcmp(ArchName, "x86_64") == 0) TC = new toolchains::Darwin(*this, TCTriple, DarwinVersion, - GCCVersion); + GCCVersion, + false); + else if (strncmp(ArchName, "arm", 3) == 0 || + strncmp(ArchName, "thumb", 5) == 0) + TC = new toolchains::Darwin(*this, TCTriple, + DarwinVersion, + GCCVersion, + true); else TC = new toolchains::Darwin_GCC(*this, TCTriple); } |