2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX %s
|
2015-03-17 19:55:43 +08:00
|
|
|
// CHECK-VERSION-OSX: "armv6k-apple-macosx10.5.0"
|
2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-IOS2 %s
|
2015-03-17 19:55:43 +08:00
|
|
|
// CHECK-VERSION-IOS2: "armv6k-apple-ios2.0.0"
|
2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-IOS22 %s
|
2015-03-17 19:55:43 +08:00
|
|
|
// CHECK-VERSION-IOS22: "armv6k-apple-ios2.2.0"
|
2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-IOS3 %s
|
2015-03-17 19:55:43 +08:00
|
|
|
// CHECK-VERSION-IOS3: "armv6k-apple-ios3.0.0"
|
2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target i686-apple-darwin8 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX4 %s
|
|
|
|
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX4 %s
|
|
|
|
// CHECK-VERSION-OSX4: "i386-apple-macosx10.4.0"
|
|
|
|
// RUN: %clang -target i686-apple-darwin9 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX5 %s
|
|
|
|
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX5 %s
|
|
|
|
// CHECK-VERSION-OSX5: "i386-apple-macosx10.5.0"
|
|
|
|
// RUN: %clang -target i686-apple-darwin10 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX6 %s
|
|
|
|
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.6 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX6 %s
|
|
|
|
// CHECK-VERSION-OSX6: "i386-apple-macosx10.6.0"
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin14 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX10 %s
|
|
|
|
// RUN: %clang -target x86_64-apple-macosx -mmacosx-version-min=10.10 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX10 %s
|
|
|
|
// CHECK-VERSION-OSX10: "x86_64-apple-macosx10.10.0"
|
2009-04-11 05:00:07 +08:00
|
|
|
|
2015-02-05 02:10:38 +08:00
|
|
|
// Check environment variable gets interpreted correctly
|
|
|
|
// RUN: env MACOSX_DEPLOYMENT_TARGET=10.5 \
|
|
|
|
// RUN: %clang -target i386-apple-darwin9 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX5 %s
|
2010-01-26 09:45:19 +08:00
|
|
|
// RUN: env IPHONEOS_DEPLOYMENT_TARGET=2.0 \
|
2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-IOS2 %s
|
2011-04-22 05:27:33 +08:00
|
|
|
|
|
|
|
// RUN: env MACOSX_DEPLOYMENT_TARGET=10.4.10 \
|
2015-02-05 02:10:38 +08:00
|
|
|
// RUN: %clang -target i386-apple-darwin9 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-OSX49 %s
|
|
|
|
// CHECK-VERSION-OSX49: "i386-apple-macosx10.4.10"
|
|
|
|
// RUN: env IPHONEOS_DEPLOYMENT_TARGET=2.3.1 \
|
|
|
|
// RUN: %clang -target armv6-apple-darwin9 -c %s -### 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-VERSION-IOS231 %s
|
2015-03-17 19:55:43 +08:00
|
|
|
// CHECK-VERSION-IOS231: "armv6k-apple-ios2.3.1"
|