diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-05-09 18:46:30 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-05-09 18:46:30 +0000 |
commit | c793ea42d7afd567c3cdd900cfa72398b2b38cd5 (patch) | |
tree | 58db2e94bfd774c045c7e8aece00bcabc36515f7 /lib/Driver | |
parent | 4ec2678021a4621228321958b3641540f27a834a (diff) |
Now the proper fix for r156497. Sorry for the churn.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 2e2ec938f5..12f292d554 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -59,6 +59,11 @@ Darwin::Darwin(const Driver &D, const llvm::Triple& Triple) DarwinVersion[0] = Minor + 4; DarwinVersion[1] = Micro; DarwinVersion[2] = 0; + + // Compute the initial iOS version from the triple + getTriple().getiOSVersion(Major, Minor, Micro); + llvm::raw_string_ostream(iOSVersionMin) + << Major << '.' << Minor << '.' << Micro; } types::ID Darwin::LookupTypeForExtension(const char *Ext) const { @@ -525,10 +530,6 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const { // go ahead as assume we're targeting iOS. if (OSXTarget.empty() && iOSTarget.empty()) if (getDarwinArchName(Args) == "armv7") { - unsigned Major, Minor, Micro; - getTriple().getiOSVersion(Major, Minor, Micro); - llvm::raw_string_ostream(iOSVersionMin) - << Major << '.' << Minor << '.' << Micro; iOSTarget = iOSVersionMin; } |