summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-06-25 20:25:43 +0000
committerChris Bieneman <beanz@apple.com>2015-06-25 20:25:43 +0000
commit4e0fee847b7c709f6175e9e8c68446688b7df25e (patch)
treea374887a9be7118b3b7469f4592137ff6209e1fe
parente04de3ebe93897838a47c9ace4c5377ab91c47c6 (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240686 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/Options.td1
-rw-r--r--test/Driver/ios-version-min.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td
index aae3776935..4eb5647520 100644
--- a/include/clang/Driver/Options.td
+++ b/include/clang/Driver/Options.td
@@ -1170,6 +1170,7 @@ def miphoneos_version_min_EQ : Joined<["-"], "miphoneos-version-min=">, Group<m_
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]>;
diff --git a/test/Driver/ios-version-min.c b/test/Driver/ios-version-min.c
new file mode 100644
index 0000000000..472fa0d615
--- /dev/null
+++ b/test/Driver/ios-version-min.c
@@ -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