@@ -77,36 +77,36 @@ Swift.success()
77
77
// over sdk/iOSSupport. (default resource dir + bad-bad-sdk)
78
78
//
79
79
// RUN: %empty-directory(%t.mcp)
80
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-bad-sdk) -target x86_64 -apple-ios13.1-macabi -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=RESDIR-MACCATALYST
80
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-bad-sdk) -target %target-cpu -apple-ios13.1-macabi -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=RESDIR-MACCATALYST
81
81
// RESDIR-MACCATALYST: success
82
82
83
83
// IOSSUP: If resource-dir has no standard library but sdk/iOSSupport does, it
84
84
// will be preferred over sdk. (empty-resdir + good-bad-sdk)
85
85
//
86
86
// RUN: %empty-directory(%t.mcp)
87
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/good-bad-sdk) -target x86_64 -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSSUP-MACCATALYST
87
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/good-bad-sdk) -target %target-cpu -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSSUP-MACCATALYST
88
88
// IOSSUP-MACCATALYST: success
89
89
90
90
// IOSBAD: Confirms that we don't use sdk/iOSSupport on non-macCatalyst, even if
91
91
// present. (empty-resdir + bad-good-sdk)
92
92
//
93
93
// RUN: %empty-directory(%t.mcp)
94
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-good-sdk) -target x86_64 -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSBAD-MACCATALYST
94
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-good-sdk) -target %target-cpu -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSBAD-MACCATALYST
95
95
// IOSBAD-MACCATALYST: failure
96
96
97
97
// SDKTOP: If resource-dir and sdk/iOSSupport don't have standard libraries but
98
98
// sdk does, it will be used as a last resort. (empty-resdir + empty-good-sdk)
99
99
//
100
100
// RUN: %empty-directory(%t.mcp)
101
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-good-sdk) -target x86_64 -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=SDKTOP-MACCATALYST
101
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-good-sdk) -target %target-cpu -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=SDKTOP-MACCATALYST
102
102
// SDKTOP-MACCATALYST: success
103
103
104
104
// NILLIB: If no standard libraries are available, stdlib loading fails.
105
105
// (empty-resdir + empty-empty-sdk) This one has a different error message from
106
106
// the others because there are no failure-failure-failure triples to find.
107
107
//
108
108
// RUN: %empty-directory(%t.mcp)
109
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-empty-sdk) -target x86_64 -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=NILLIB-MACCATALYST
109
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-empty-sdk) -target %target-cpu -apple-ios13.1-macabi -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=NILLIB-MACCATALYST
110
110
// NILLIB-MACCATALYST: unable to load standard library
111
111
112
112
@@ -121,34 +121,34 @@ Swift.success()
121
121
// over sdk/iOSSupport. (default resource dir + bad-bad-sdk)
122
122
//
123
123
// RUN: %empty-directory(%t.mcp)
124
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-bad-sdk) -target x86_64 -apple-macosx10.15 -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=RESDIR-MACOSX
124
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-bad-sdk) -target %target-cpu -apple-macosx10.15 -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=RESDIR-MACOSX
125
125
// RESDIR-MACOSX: {{success|module 'Swift' was created for incompatible target}}
126
126
127
127
// IOSSUP: If resource-dir has no standard library but sdk/iOSSupport does, it
128
128
// will be preferred over sdk. (empty-resdir + good-bad-sdk)
129
129
//
130
130
// RUN: %empty-directory(%t.mcp)
131
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/good-bad-sdk) -target x86_64 -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSSUP-MACOSX
131
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/good-bad-sdk) -target %target-cpu -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSSUP-MACOSX
132
132
// IOSSUP-MACOSX: failure
133
133
134
134
// IOSBAD: Confirms that we don't use sdk/iOSSupport on non-macCatalyst, even if
135
135
// present. (empty-resdir + bad-good-sdk)
136
136
//
137
137
// RUN: %empty-directory(%t.mcp)
138
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-good-sdk) -target x86_64 -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSBAD-MACOSX
138
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-good-sdk) -target %target-cpu -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=IOSBAD-MACOSX
139
139
// IOSBAD-MACOSX: {{success|module 'Swift' was created for incompatible target}}
140
140
141
141
// SDKTOP: If resource-dir and sdk/iOSSupport don't have standard libraries but
142
142
// sdk does, it will be used as a last resort. (empty-resdir + empty-good-sdk)
143
143
//
144
144
// RUN: %empty-directory(%t.mcp)
145
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-good-sdk) -target x86_64 -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=SDKTOP-MACOSX
145
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-good-sdk) -target %target-cpu -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=SDKTOP-MACOSX
146
146
// SDKTOP-MACOSX: {{success|module 'Swift' was created for incompatible target}}
147
147
148
148
// NILLIB: If no standard libraries are available, stdlib loading fails.
149
149
// (empty-resdir + empty-empty-sdk) This one has a different error message from
150
150
// the others because there are no failure-failure-failure triples to find.
151
151
//
152
152
// RUN: %empty-directory(%t.mcp)
153
- // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-empty-sdk) -target x86_64 -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=NILLIB-MACOSX
153
+ // RUN: not %target-swift-frontend(mock-sdk: -sdk %t/empty-empty-sdk) -target %target-cpu -apple-macosx10.15 -resource-dir %t/empty-resdir/usr/lib/swift -module-cache-path %t.mcp -typecheck %s 2>&1 | %FileCheck %s --check-prefix=NILLIB-MACOSX
154
154
// NILLIB-MACOSX: unable to load standard library
0 commit comments