|
29 | 29 | // we should fall back to the SDK.
|
30 | 30 |
|
31 | 31 | // RUN: %empty-directory(%t/mcp)
|
32 |
| -// RUN: %target-swift-frontend(mock-sdk: -sdk %t/good-sdk) -resource-dir %t/empty-toolchain/usr/lib/swift -module-cache-path %t/mcp -typecheck -verify -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import %s |
| 32 | +// RUN: %target-swift-frontend(mock-sdk: -sdk %t/good-sdk) -Xcc -v -resource-dir %t/empty-toolchain/usr/lib/swift -module-cache-path %t/mcp -typecheck -verify -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import %s |
33 | 33 |
|
34 | 34 | // If the compiler's resource directory *does* contain a runtime swiftmodule, we
|
35 | 35 | // should *not* use the one in the SDK. (We assume that the resource directory
|
36 | 36 | // built with this compiler does contain a standard library.)
|
37 | 37 |
|
38 | 38 | // RUN: %empty-directory(%t/mcp)
|
39 |
| -// RUN: %target-swift-frontend(mock-sdk: -sdk %t/bad-sdk) -module-cache-path %t/mcp -typecheck -verify -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import %s |
| 39 | +// RUN: %target-swift-frontend(mock-sdk: -sdk %t/bad-sdk) -Xcc -v -module-cache-path %t/mcp -typecheck -verify -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import %s |
40 | 40 |
|
41 | 41 | // If neither the resource directory nor the SDK contains a runtime swiftmodule,
|
42 | 42 | // loading should fail. This just proves that we aren't getting runtime imports
|
|
48 | 48 | // FIXME: We can't properly test this on a non-Darwin platform because we'll get
|
49 | 49 | // the same error message for "unloadable standard library" and "no standard
|
50 | 50 | // library" (https://github.com/apple/swift/issues/52499).
|
51 |
| -// REQUIRES: objc_interop |
52 | 51 |
|
53 | 52 | // RUN: %empty-directory(%t/mcp)
|
54 |
| -// RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-sdk) -resource-dir %t/empty-toolchain/usr/lib/swift -module-cache-path %t/mcp -typecheck %s -dump-clang-diagnostics -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import 2>&1 | %FileCheck --check-prefix CHECK-EMPTY %s |
| 53 | +// RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-sdk) -Xcc -v -resource-dir %t/empty-toolchain/usr/lib/swift -module-cache-path %t/mcp -typecheck %s -dump-clang-diagnostics -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import 2>&1 | %FileCheck --check-prefix CHECK-EMPTY %s |
55 | 54 | // CHECK-EMPTY-NOT: '-isystem' '{{.*}}/bad-sdk/usr/lib/swift/shims'
|
56 | 55 | // CHECK-EMPTY: error: could not find module 'Swift' for target '{{.*}}'; found: garbage-garbage-garbage, at: {{.*}}/Swift.swiftmodule
|
57 | 56 |
|
58 | 57 | // Check that, when the toolchain *doesn't* have SwiftShims in it, ClagImporter
|
59 | 58 | // *does* add a -I flag to look in the SDK.
|
60 | 59 |
|
61 | 60 | // RUN: %empty-directory(%t/mcp)
|
62 |
| -// RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-sdk) -resource-dir %t/really-empty-toolchain/usr/lib/swift -module-cache-path %t/mcp -typecheck %s -dump-clang-diagnostics -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import 2>&1 | %FileCheck --check-prefix CHECK-REALLY-EMPTY %s |
| 61 | +// RUN: not %target-swift-frontend(mock-sdk: -sdk %t/bad-sdk) -Xcc -v -resource-dir %t/really-empty-toolchain/usr/lib/swift -module-cache-path %t/mcp -typecheck %s -dump-clang-diagnostics -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import 2>&1 | %FileCheck --check-prefix CHECK-REALLY-EMPTY %s |
63 | 62 | // CHECK-REALLY-EMPTY: '-isystem' '{{.*}}/bad-sdk/usr/lib/swift/shims'
|
64 | 63 | // CHECK-REALLY-EMPTY: error: could not find module 'Swift' for target '{{.*}}'; found: garbage-garbage-garbage, at: {{.*}}/Swift.swiftmodule
|
65 | 64 |
|
|
0 commit comments