[cfe-commits] r140668 - /cfe/trunk/lib/Driver/ToolChains.cpp

Chad Rosier mcrosier at apple.com
Tue Sep 27 19:46:32 CDT 2011


Author: mcrosier
Date: Tue Sep 27 19:46:32 2011
New Revision: 140668

URL: http://llvm.org/viewvc/llvm-project?rev=140668&view=rev
Log:
[driver] If no OSX or iOS target has been specified and we're compiling for 
armv7, go ahead as assume we're targeting iOS.
rdar://10147774

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=140668&r1=140667&r2=140668&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Sep 27 19:46:32 2011
@@ -564,6 +564,12 @@
       }
     }
 
+    // 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.




More information about the cfe-commits mailing list