r240686 - Add -miphonesimulator-version-min as alias to -ios-simulator-version-min.

Chris Bieneman beanz at apple.com
Thu Jun 25 13:25:43 PDT 2015


Author: cbieneman
Date: Thu Jun 25 15:25:43 2015
New Revision: 240686

URL: http://llvm.org/viewvc/llvm-project?rev=240686&view=rev
Log:
Add -miphonesimulator-version-min as alias to -ios-simulator-version-min.

Summary:
For better or worse the OS X command line tools refer to the iOS simulator as iphonesimucator. We should provide an alias flag -miphonesimulator-version-min that matches a consistent pattern with the other tools.

This is in the interest of making it easier for people to write platform-agnostic darwin build scripts.

Reviewers: bob.wilson, bogner

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D10743

Added:
    cfe/trunk/test/Driver/ios-version-min.c
Modified:
    cfe/trunk/include/clang/Driver/Options.td

Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=240686&r1=240685&r2=240686&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Thu Jun 25 15:25:43 2015
@@ -1170,6 +1170,7 @@ def miphoneos_version_min_EQ : Joined<["
 def mios_version_min_EQ : Joined<["-"], "mios-version-min=">,
   Alias<miphoneos_version_min_EQ>, HelpText<"Set iOS deployment target">;
 def mios_simulator_version_min_EQ : Joined<["-"], "mios-simulator-version-min=">, Alias<miphoneos_version_min_EQ>;
+def miphonesimulator_version_min_EQ : Joined<["-"], "miphonesimulator-version-min=">, Alias<miphoneos_version_min_EQ>;
 def mkernel : Flag<["-"], "mkernel">, Group<m_Group>;
 def mlinker_version_EQ : Joined<["-"], "mlinker-version=">,
   Flags<[DriverOption]>;

Added: cfe/trunk/test/Driver/ios-version-min.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/ios-version-min.c?rev=240686&view=auto
==============================================================================
--- cfe/trunk/test/Driver/ios-version-min.c (added)
+++ cfe/trunk/test/Driver/ios-version-min.c Thu Jun 25 15:25:43 2015
@@ -0,0 +1,5 @@
+// RUN: %clang -target i386-apple-darwin9 -miphonesimulator-version-min=7.0 -arch i386 -S -o - %s | FileCheck %s
+// RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=7.0 -arch armv7s -S -o - %s | FileCheck %s
+
+int main() { return 0; }
+// CHECK: .ios_version_min 7, 0





More information about the cfe-commits mailing list