File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -996,11 +996,9 @@ toolchains::Darwin::constructInvocation(const LinkJobAction &job,
996
996
// we wouldn't have to replicate Clang's logic here.
997
997
bool wantsObjCRuntime = false ;
998
998
if (Triple.isiOS ())
999
- wantsObjCRuntime = Triple.isOSVersionLT (8 );
1000
- else if (Triple.isWatchOS ())
1001
- wantsObjCRuntime = Triple.isOSVersionLT (2 );
999
+ wantsObjCRuntime = Triple.isOSVersionLT (9 );
1002
1000
else if (Triple.isMacOSX ())
1003
- wantsObjCRuntime = Triple.isMacOSXVersionLT (10 , 10 );
1001
+ wantsObjCRuntime = Triple.isMacOSXVersionLT (10 , 11 );
1004
1002
1005
1003
if (context.Args .hasFlag (options::OPT_link_objc_runtime,
1006
1004
options::OPT_no_link_objc_runtime,
Original file line number Diff line number Diff line change 35
35
// RUN: FileCheck -check-prefix COMPLEX %s < %t.complex.txt
36
36
37
37
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 -g %s | FileCheck -check-prefix DEBUG %s
38
- // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.10 %s | FileCheck -check-prefix NO_ARCLITE %s
39
- // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-ios8.0 %s | FileCheck -check-prefix NO_ARCLITE %s
38
+
39
+ // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.10 %s > %t.simple-macosx10.10.txt
40
+ // RUN: FileCheck %s < %t.simple-macosx10.10.txt
41
+ // RUN: FileCheck -check-prefix SIMPLE %s < %t.simple-macosx10.10.txt
42
+
43
+ // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-ios8.0 %s > %t.simple-ios8.txt
44
+ // RUN: FileCheck -check-prefix IOS_ARCLITE %s < %t.simple-ios8.txt
45
+
46
+ // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.11 %s | FileCheck -check-prefix NO_ARCLITE %s
47
+ // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-ios9.0 %s | FileCheck -check-prefix NO_ARCLITE %s
48
+ // RUN: %swiftc_driver -driver-print-jobs -target arm64-apple-tvos9.0 %s | FileCheck -check-prefix NO_ARCLITE %s
49
+ // RUN: %swiftc_driver -driver-print-jobs -target armv7k-apple-watchos2.0 %s | FileCheck -check-prefix NO_ARCLITE %s
40
50
41
51
// RUN: rm -rf %t && mkdir %t
42
52
// RUN: touch %t/a.o
225
235
// DEBUG: linker
226
236
// DEBUG: -o linker.dSYM
227
237
238
+
239
+
240
+ // IOS_ARCLITE: bin/ld{{"? }}
241
+ // IOS_ARCLITE: -force_load {{[^ ]+/lib/arc/libarclite_iphonesimulator.a}}
242
+ // IOS_ARCLITE: -o {{[^ ]+}}
243
+
228
244
// NO_ARCLITE: bin/ld{{"? }}
229
245
// NO_ARCLITE-NOT: arclite
230
246
// NO_ARCLITE: -o {{[^ ]+}}
You can’t perform that action at this time.
0 commit comments