2012-03-07 04:05:56 +08:00
|
|
|
// RUN: touch %t.o
|
2012-05-16 05:00:27 +08:00
|
|
|
// 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
|
2012-03-07 04:05:56 +08:00
|
|
|
// 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 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
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
// CHECK-UNUSED-NOT: warning: argument unused during compilation: '-fobjc-link-runtime'
|