|
20 | 20 | // RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \
|
21 | 21 | // RUN: -lObjCAPI -Xcc -DINCLUDE_FOO
|
22 | 22 |
|
23 |
| -/// Build a swift module that depends on the above Core swift module without `INCLUDE_FOO`; |
24 |
| -/// it should fail and diagnose that there was a deserialization failure. |
25 |
| -// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIA)) %t/src/UIA.swift \ |
26 |
| -// RUN: -module-name MyUIA -emit-module -package-name pkg \ |
27 |
| -// RUN: -enable-library-evolution -O -wmo \ |
28 |
| -// RUN: -I %t/artifacts/SwiftBuilds -L %t/artifacts/SwiftBuilds \ |
29 |
| -// RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \ |
30 |
| -// RUN: -lMyCore -lObjCAPI -Rmodule-loading \ |
31 |
| -// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK |
32 |
| -// CHECK-DAG: warning: cannot bypass resilience due to member deserialization failure while attempting to access missing member of 'PkgStructA' in module 'MyCore' from module 'MyCore' |
33 |
| - |
34 |
| -/// Build a swift module that depends on Core without `INCLUDE_FOO` but |
35 |
| -/// opt out of deserialization checks; it builds even though deserialization failed. |
36 |
| -// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIA)) %t/src/UIA.swift \ |
37 |
| -// RUN: -module-name MyUIA -emit-module -package-name pkg \ |
38 |
| -// RUN: -enable-library-evolution -O -wmo \ |
39 |
| -// RUN: -Xfrontend -experimental-skip-deserialization-checks-for-package-cmo \ |
40 |
| -// RUN: -I %t/artifacts/SwiftBuilds -L %t/artifacts/SwiftBuilds \ |
41 |
| -// RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \ |
42 |
| -// RUN: -lMyCore -lObjCAPI -Rmodule-loading |
43 |
| - |
44 | 23 | /// Build another swift module that depends on Core; since FooObjc is not referenced
|
45 | 24 | /// in the call chain, there's no deserialization failure, and bypassing resilience is allowed.
|
46 | 25 | // RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIB)) %t/src/UIB.swift \
|
|
0 commit comments