From: Chris Bieneman Date: Thu, 25 Jun 2015 20:25:43 +0000 (+0000) Subject: Add -miphonesimulator-version-min as alias to -ios-simulator-version-min. X-Git-Tag: llvmorg-3.7.0-rc1~1506 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79e8210e82141801ac988d6511c4754ca73b4c56;p=platform%2Fupstream%2Fllvm.git 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 llvm-svn: 240686 --- diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index aae37769..4eb5647 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -1170,6 +1170,7 @@ def miphoneos_version_min_EQ : Joined<["-"], "miphoneos-version-min=">, Group; def mios_simulator_version_min_EQ : Joined<["-"], "mios-simulator-version-min=">, Alias; +def miphonesimulator_version_min_EQ : Joined<["-"], "miphonesimulator-version-min=">, Alias; def mkernel : Flag<["-"], "mkernel">, Group; def mlinker_version_EQ : Joined<["-"], "mlinker-version=">, Flags<[DriverOption]>; diff --git a/clang/test/Driver/ios-version-min.c b/clang/test/Driver/ios-version-min.c new file mode 100644 index 0000000..472fa0d --- /dev/null +++ b/clang/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