blob: 8e4824a7fe95f01f954fb1d9e3df6dac47dd0dc7 [file] [log] [blame]
Chad Rosier87ca5582012-05-09 18:09:58 +00001// RUN: touch %t.o
2// RUN: %clang -target x86_64-apple-macosx -### %t.o 2> %t.log
3// RUN: %clang -target x86_64-apple-darwin9 -### %t.o 2>> %t.log
4// RUN: %clang -target x86_64-apple-macosx10.7 -### %t.o 2>> %t.log
5//
6// RUN: %clang -target armv7-apple-ios -### %t.o 2>> %t.log
7// RUN: %clang -target armv7-apple-ios0.0 -### %t.o 2>> %t.log
8// RUN: %clang -target armv7-apple-ios1.2.3 -### %t.o 2>> %t.log
9// RUN: %clang -target armv7-apple-ios5.0 -### %t.o 2>> %t.log
10//
11// RUN: FileCheck %s < %t.log
12
13// CHECK: {{ld(.exe)?"}}
14// CHECK: -macosx_version_min
15// CHECK: 10.4.0
16// CHECK: {{ld(.exe)?"}}
17// CHECK: -macosx_version_min
18// CHECK: 10.5.0
19// CHECK: {{ld(.exe)?"}}
20// CHECK: -macosx_version_min
21// CHECK: 10.7.0
22// CHECK: {{ld(.exe)?"}}
23// CHECK: -iphoneos_version_min
Chad Rosier78e63f12012-05-09 18:23:04 +000024// CHECK: 3.0.0
Chad Rosier87ca5582012-05-09 18:09:58 +000025// CHECK: {{ld(.exe)?"}}
26// CHECK: -iphoneos_version_min
Chad Rosier78e63f12012-05-09 18:23:04 +000027// CHECK: 3.0.0
Chad Rosier87ca5582012-05-09 18:09:58 +000028// CHECK: {{ld(.exe)?"}}
29// CHECK: -iphoneos_version_min
30// CHECK: 1.2.3
31// CHECK: {{ld(.exe)?"}}
32// CHECK: -iphoneos_version_min
33// CHECK: 5.0.0