mirror of https://github.com/microsoft/clang.git
Fix which Darwin versions have ObjC runtime with full subscripting support.
Update min deployment target in some tests so that they don't try to link against libarclite and don't fail when it's not available. rdar://problem/29253617 Reviewers: vsk, kubamracek Reviewed By: vsk Subscribers: jkorous-apple, cfe-commits Differential Revision: https://reviews.llvm.org/D43787 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326145 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d63d85c91
commit
641c1b0a8a
|
@ -207,8 +207,8 @@ public:
|
|||
bool hasSubscripting() const {
|
||||
switch (getKind()) {
|
||||
case FragileMacOSX: return false;
|
||||
case MacOSX: return getVersion() >= VersionTuple(10, 8);
|
||||
case iOS: return getVersion() >= VersionTuple(6);
|
||||
case MacOSX: return getVersion() >= VersionTuple(10, 11);
|
||||
case iOS: return getVersion() >= VersionTuple(9);
|
||||
case WatchOS: return true;
|
||||
|
||||
// This is really a lie, because some implementations and versions
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: touch %t.o
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -lfoo -mmacosx-version-min=10.7 %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-OSX %s
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.8 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -lfoo -mmacosx-version-min=10.10 %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-OSX %s
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.11 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s
|
||||
// RUN: %clang -### -target i386-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.7 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -nostdlib %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOSTDLIB %s
|
||||
|
||||
|
@ -12,6 +12,6 @@
|
|||
// CHECK-NOARCLITE-NOT: libarclite
|
||||
// CHECK-NOSTDLIB-NOT: -lobjc
|
||||
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -fobjc-arc -mmacosx-version-min=10.7 %s 2>&1 | FileCheck -check-prefix=CHECK-UNUSED %s
|
||||
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -fobjc-arc -mmacosx-version-min=10.10 %s 2>&1 | FileCheck -check-prefix=CHECK-UNUSED %s
|
||||
|
||||
// CHECK-UNUSED-NOT: warning: argument unused during compilation: '-fobjc-link-runtime'
|
||||
|
|
Loading…
Reference in New Issue