diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-07-19 01:35:55 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-07-19 01:35:55 +0000 |
commit | 25d3bfd895e72d44a668cd0f41fa572eb4b55a07 (patch) | |
tree | b07cd032743c77f686de8af772171d3550fa53cf /clang/test/Driver/ios-simulator-arcruntime.c | |
parent | 723444e76723a8c543a1c974764a45c90a7819a7 (diff) | |
download | bcm5719-llvm-25d3bfd895e72d44a668cd0f41fa572eb4b55a07.tar.gz bcm5719-llvm-25d3bfd895e72d44a668cd0f41fa572eb4b55a07.zip |
Force the OS X version to 10.6 for old-style simulator builds.
The hack of recognizing a -D__IPHONE_OS_VERSION_MIN_REQUIRED option
in place of -mios-simulator-version-min leaves the Darwin version
unspecified. It can be set separately with -mmacosx-version-min (which
makes no sense) or inferred to match the host version (which is unpredictable
and usually wrong). This really needs to get cleaned up, but in the
meantime, force the OS X version to 10.6 so that the behavior is sane for
the iOS simulator. Thanks for Argyrios for the patch.
<rdar://problem/11858187>
llvm-svn: 160484
Diffstat (limited to 'clang/test/Driver/ios-simulator-arcruntime.c')
-rw-r--r-- | clang/test/Driver/ios-simulator-arcruntime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Driver/ios-simulator-arcruntime.c b/clang/test/Driver/ios-simulator-arcruntime.c index ffe3a9d3e76..33d34924ced 100644 --- a/clang/test/Driver/ios-simulator-arcruntime.c +++ b/clang/test/Driver/ios-simulator-arcruntime.c @@ -1,6 +1,8 @@ // RUN: %clang -### -x objective-c -target i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s -// RUN: %clang -### -x objective-c -target i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s +// RUN: %clang -### -x objective-c -target i386-apple-darwin10 -arch i386 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s // +// CHECK-OPTIONS1: i386-apple-macosx10.6.0 // CHECK-OPTIONS1: -fobjc-runtime=ios-4.2.1 +// CHECK-OPTIONS2: i386-apple-macosx10.6.0 // CHECK-OPTIONS2: -fobjc-runtime=ios-5.0.0 |