2 // 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
3 // 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
4 // RUN: %clang -### -target i386-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.7 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s
5 // RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -nostdlib %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOSTDLIB %s
7 // CHECK-ARCLITE-OSX: -lfoo
8 // CHECK-ARCLITE-OSX: libarclite_macosx.a
9 // CHECK-ARCLITE-OSX: -framework
10 // CHECK-ARCLITE-OSX: Foundation
11 // CHECK-ARCLITE-OSX: -lobjc
12 // CHECK-NOARCLITE-NOT: libarclite
13 // CHECK-NOSTDLIB-NOT: -lobjc
15 // 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
17 // CHECK-UNUSED-NOT: warning: argument unused during compilation: '-fobjc-link-runtime'
19 // RUN: %clang -### -target arm64e-apple-ios8 -fobjc-link-runtime %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-ARM64E %s
20 // CHECK-ARCLITE-ARM64E-NOT: libarclite
22 // RUN: %clang -### -target arm64-apple-macos10.8 -fobjc-link-runtime %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-ARM-MAC %s
23 // CHECK-ARCLITE-ARM-MAC-NOT: libarclite