]> granicus.if.org Git - clang/commitdiff
[driver] If no OSX or iOS target has been specified and we're compiling for
authorChad Rosier <mcrosier@apple.com>
Wed, 28 Sep 2011 00:46:32 +0000 (00:46 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 28 Sep 2011 00:46:32 +0000 (00:46 +0000)
armv7, go ahead as assume we're targeting iOS.
rdar://10147774

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140668 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 8b1c59abb09ffb8b151a9cb26c4ebd4191b7e8e5..f3db0a87c318178ec7a60ad76403b8d164cafc88 100644 (file)
@@ -564,6 +564,12 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const {
       }
     }
 
+    // If no OSX or iOS target has been specified and we're compiling for armv7,
+    // go ahead as assume we're targeting iOS.
+    if (OSXTarget.empty() && iOSTarget.empty())
+      if (getDarwinArchName(Args) == "armv7")
+        iOSTarget = "0.0";
+
     // Handle conflicting deployment targets
     //
     // FIXME: Don't hardcode default here.