2012-03-07 04:05:56 +08:00
|
|
|
// RUN: touch %t.o
|
2018-02-27 07:10:23 +08:00
|
|
|
// 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
|
2012-03-07 04:05:56 +08:00
|
|
|
// RUN: %clang -### -target i386-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.7 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s
|
2012-05-16 02:57:39 +08:00
|
|
|
// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -nostdlib %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOSTDLIB %s
|
2012-03-07 04:05:56 +08:00
|
|
|
|
2012-05-16 05:00:27 +08:00
|
|
|
// CHECK-ARCLITE-OSX: -lfoo
|
2012-03-07 04:05:56 +08:00
|
|
|
// CHECK-ARCLITE-OSX: libarclite_macosx.a
|
2012-04-24 00:22:22 +08:00
|
|
|
// CHECK-ARCLITE-OSX: -framework
|
|
|
|
// CHECK-ARCLITE-OSX: Foundation
|
2012-03-07 04:05:56 +08:00
|
|
|
// CHECK-ARCLITE-OSX: -lobjc
|
|
|
|
// CHECK-NOARCLITE-NOT: libarclite
|
2012-05-16 02:57:39 +08:00
|
|
|
// CHECK-NOSTDLIB-NOT: -lobjc
|
2012-08-08 03:58:00 +08:00
|
|
|
|
2018-02-27 07:10:23 +08:00
|
|
|
// 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
|
2012-08-08 03:58:00 +08:00
|
|
|
|
|
|
|
// CHECK-UNUSED-NOT: warning: argument unused during compilation: '-fobjc-link-runtime'
|
2020-06-27 05:57:00 +08:00
|
|
|
|
2020-09-03 23:43:21 +08:00
|
|
|
// RUN: %clang -### -target arm64e-apple-ios8 -fobjc-link-runtime %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-ARM64E %s
|
|
|
|
// CHECK-ARCLITE-ARM64E-NOT: libarclite
|
|
|
|
|
2020-06-27 05:57:00 +08:00
|
|
|
// RUN: %clang -### -target arm64-apple-macos10.8 -fobjc-link-runtime %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-ARM-MAC %s
|
|
|
|
// CHECK-ARCLITE-ARM-MAC-NOT: libarclite
|