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 | 266c62062399b7bf9612909367b68a31e50a71f4 (patch) | |
| tree | 328b294e1358a070dce5bfdbc6c2cd3a6298250e /clang/lib/Driver/ToolChains.cpp | |
| parent | 6037c6bae0b6f9d3d42a2d4dd7776ffa4c4d1364 (diff) | |
| download | bcm5719-llvm-266c62062399b7bf9612909367b68a31e50a71f4.tar.gz bcm5719-llvm-266c62062399b7bf9612909367b68a31e50a71f4.zip | |
Now the proper fix for r156497. Sorry for the churn.
llvm-svn: 156498
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 2e2ec938f51..12f292d5543 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/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; } |

