|
11 | 11 |
|
12 | 12 | // Check linker changes that came with new linkedit format. |
13 | 13 | // RUN: touch %t.o |
14 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log |
15 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log |
16 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log |
| 14 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log |
| 15 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log |
| 16 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log |
17 | 17 | // RUN: FileCheck -check-prefix=LINK_IPHONE_3_0 %s < %t.log |
18 | 18 |
|
19 | 19 | // LINK_IPHONE_3_0: {{ld(.exe)?"}} |
|
30 | 30 | // LINK_IPHONE_3_0: -lbundle1.o |
31 | 31 | // LINK_IPHONE_3_0: -lSystem |
32 | 32 |
|
33 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log |
34 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log |
35 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log |
| 33 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log |
| 34 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log |
| 35 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log |
36 | 36 | // RUN: FileCheck -check-prefix=LINK_IPHONE_3_1 %s < %t.log |
37 | 37 |
|
38 | 38 | // LINK_IPHONE_3_1: {{ld(.exe)?"}} |
|
49 | 49 | // LINK_IPHONE_3_1-NOT: -lbundle1.o |
50 | 50 | // LINK_IPHONE_3_1: -lSystem |
51 | 51 |
|
52 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch i386 -mios-simulator-version-min=3.0 %t.o 2> %t.log |
53 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch i386 -mios-simulator-version-min=3.0 -dynamiclib %t.o 2>> %t.log |
54 | | -// RUN: %clang -target i386-apple-darwin9 -### -arch i386 -mios-simulator-version-min=3.0 -bundle %t.o 2>> %t.log |
| 52 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 %t.o 2> %t.log |
| 53 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 -dynamiclib %t.o 2>> %t.log |
| 54 | +// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 -bundle %t.o 2>> %t.log |
55 | 55 | // RUN: FileCheck -check-prefix=LINK_IOSSIM_3_0 %s < %t.log |
56 | 56 |
|
57 | 57 | // LINK_IOSSIM_3_0: {{ld(.exe)?"}} |
|
132 | 132 | // LINK_LAZY_LIBRARY: {{ld(.exe)?"}} |
133 | 133 | // LINK_LAZY_LIBRARY: "-lazy_library" "Library" |
134 | 134 |
|
135 | | -// RUN: %clang -target x86_64-apple-darwin10 -### %t.o 2> %t.log |
136 | | -// RUN: %clang -target x86_64-apple-macosx10.7 -### %t.o 2>> %t.log |
| 135 | +// RUN: %clang -target x86_64-apple-darwin10 -mlinker-version=400 -### %t.o 2> %t.log |
| 136 | +// RUN: %clang -target x86_64-apple-macosx10.7 -mlinker-version=400 -### %t.o 2>> %t.log |
137 | 137 | // RUN: FileCheck -check-prefix=LINK_VERSION_MIN %s < %t.log |
138 | 138 | // LINK_VERSION_MIN: {{ld(.exe)?"}} |
139 | 139 | // LINK_VERSION_MIN: "-macosx_version_min" "10.6.0" |
|
158 | 158 | // LINK_IOSSIM_PROFILE: libclang_rt.profile_iossim.a |
159 | 159 | // LINK_IOSSIM_PROFILE: libclang_rt.ios.a |
160 | 160 |
|
161 | | -// RUN: %clang -target arm64-apple-tvos8.3 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log |
| 161 | +// RUN: %clang -target arm64-apple-tvos8.3 -mlinker-version=400 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log |
162 | 162 | // RUN: FileCheck -check-prefix=LINK_TVOS_ARM64 %s < %t.log |
163 | 163 | // LINK_TVOS_ARM64: {{ld(.exe)?"}} |
164 | 164 | // LINK_TVOS_ARM64: -tvos_version_min |
165 | 165 | // LINK_TVOS_ARM64-NOT: crt |
166 | 166 | // LINK_TVOS_ARM64-NOT: lgcc_s.1 |
167 | 167 | // LINK_TVOS_ARM64: libclang_rt.tvos.a |
168 | 168 |
|
169 | | -// RUN: %clang -target arm64-apple-tvos8.3 -mtvos-version-min=8.3 -fprofile-instr-generate -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log |
| 169 | +// RUN: %clang -target arm64-apple-tvos8.3 -mlinker-version=400 -mtvos-version-min=8.3 -fprofile-instr-generate -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log |
170 | 170 | // RUN: FileCheck -check-prefix=LINK_TVOS_PROFILE %s < %t.log |
171 | 171 | // LINK_TVOS_PROFILE: {{ld(.exe)?"}} |
172 | 172 | // LINK_TVOS_PROFILE: libclang_rt.profile_tvos.a |
173 | 173 | // LINK_TVOS_PROFILE: libclang_rt.tvos.a |
174 | 174 |
|
175 | | -// RUN: %clang -target arm64-apple-tvos8.3 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log |
| 175 | +// RUN: %clang -target arm64-apple-tvos8.3 -mlinker-version=400 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log |
176 | 176 | // RUN: FileCheck -check-prefix=LINK_TVOS_KEXT %s < %t.log |
177 | 177 | // LINK_TVOS_KEXT: {{ld(.exe)?"}} |
178 | 178 | // LINK_TVOS_KEXT: libclang_rt.cc_kext_tvos.a |
179 | 179 | // LINK_TVOS_KEXT: libclang_rt.tvos.a |
180 | 180 |
|
181 | | -// RUN: %clang -target armv7k-apple-watchos2.0 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log |
| 181 | +// RUN: %clang -target armv7k-apple-watchos2.0 -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log |
182 | 182 | // RUN: FileCheck -check-prefix=LINK_WATCHOS_ARM %s < %t.log |
183 | 183 | // LINK_WATCHOS_ARM: {{ld(.exe)?"}} |
184 | 184 | // LINK_WATCHOS_ARM: -watchos_version_min |
185 | 185 | // LINK_WATCHOS_ARM-NOT: crt |
186 | 186 | // LINK_WATCHOS_ARM-NOT: lgcc_s.1 |
187 | 187 | // LINK_WATCHOS_ARM: libclang_rt.watchos.a |
188 | 188 |
|
189 | | -// RUN: %clang -target armv7k-apple-watchos2.0 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -fprofile-instr-generate -### %t.o 2> %t.log |
| 189 | +// RUN: %clang -target armv7k-apple-watchos2.0 -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -fprofile-instr-generate -### %t.o 2> %t.log |
190 | 190 | // RUN: FileCheck -check-prefix=LINK_WATCHOS_PROFILE %s < %t.log |
191 | 191 | // LINK_WATCHOS_PROFILE: {{ld(.exe)?"}} |
192 | 192 | // LINK_WATCHOS_PROFILE: libclang_rt.profile_watchos.a |
193 | 193 | // LINK_WATCHOS_PROFILE: libclang_rt.watchos.a |
194 | 194 |
|
195 | | -// RUN: %clang -target armv7k-apple-watchos2.0 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log |
| 195 | +// RUN: %clang -target armv7k-apple-watchos2.0 -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log |
196 | 196 | // RUN: FileCheck -check-prefix=LINK_WATCHOS_KEXT %s < %t.log |
197 | 197 | // LINK_WATCHOS_KEXT: {{ld(.exe)?"}} |
198 | 198 | // LINK_WATCHOS_KEXT: libclang_rt.cc_kext_watchos.a |
|
251 | 251 | // IPHONEOS_DEPLOYMENT_TARGET variable is used instead of the command-line |
252 | 252 | // deployment target options. |
253 | 253 | // RUN: env IPHONEOS_DEPLOYMENT_TARGET=7.0 \ |
254 | | -// RUN: %clang -target arm64-apple-darwin -### %t.o 2> %t.log |
| 254 | +// RUN: %clang -target arm64-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log |
255 | 255 | // RUN: FileCheck -check-prefix=LINK_IPHONEOS_VERSION_MIN %s < %t.log |
256 | 256 | // RUN: env IPHONEOS_DEPLOYMENT_TARGET=7.0 \ |
257 | | -// RUN: %clang -target i386-apple-darwin -### %t.o 2> %t.log |
| 257 | +// RUN: %clang -target i386-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log |
258 | 258 | // RUN: FileCheck -check-prefix=LINK_IOS_SIMULATOR_VERSION_MIN %s < %t.log |
259 | 259 | // LINK_IPHONEOS_VERSION_MIN: -iphoneos_version_min |
260 | 260 | // LINK_IOS_SIMULATOR_VERSION_MIN: -ios_simulator_version_min |
261 | 261 |
|
262 | 262 | // Ditto for tvOS.... |
263 | 263 | // RUN: env TVOS_DEPLOYMENT_TARGET=7.0 \ |
264 | | -// RUN: %clang -target armv7-apple-darwin -### %t.o 2> %t.log |
| 264 | +// RUN: %clang -target armv7-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log |
265 | 265 | // RUN: FileCheck -check-prefix=LINK_TVOS_VERSION_MIN %s < %t.log |
266 | 266 | // RUN: env TVOS_DEPLOYMENT_TARGET=7.0 \ |
267 | | -// RUN: %clang -target x86_64-apple-darwin -### %t.o 2> %t.log |
| 267 | +// RUN: %clang -target x86_64-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log |
268 | 268 | // RUN: FileCheck -check-prefix=LINK_TVOS_SIMULATOR_VERSION_MIN %s < %t.log |
269 | 269 | // LINK_TVOS_VERSION_MIN: -tvos_version_min |
270 | 270 | // LINK_TVOS_SIMULATOR_VERSION_MIN: -tvos_simulator_version_min |
271 | 271 |
|
272 | 272 | // ...and for watchOS. |
273 | 273 | // RUN: env WATCHOS_DEPLOYMENT_TARGET=2.0 \ |
274 | | -// RUN: %clang -target armv7k-apple-darwin -### %t.o 2> %t.log |
| 274 | +// RUN: %clang -target armv7k-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log |
275 | 275 | // RUN: FileCheck -check-prefix=LINK_WATCHOS_VERSION_MIN %s < %t.log |
276 | 276 | // RUN: env WATCHOS_DEPLOYMENT_TARGET=2.0 \ |
277 | | -// RUN: %clang -target i386-apple-darwin -### %t.o 2> %t.log |
| 277 | +// RUN: %clang -target i386-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log |
278 | 278 | // RUN: FileCheck -check-prefix=LINK_WATCHOS_SIMULATOR_VERSION_MIN %s < %t.log |
279 | 279 | // LINK_WATCHOS_VERSION_MIN: -watchos_version_min |
280 | 280 | // LINK_WATCHOS_SIMULATOR_VERSION_MIN: -watchos_simulator_version_min |
|
0 commit comments