|
2 | 2 | // RUN: %empty-directory(%t)
|
3 | 3 | // RUN: split-file %s %t
|
4 | 4 |
|
5 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \ |
6 |
| -// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \ |
| 5 | +// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O -module-load-mode prefer-serialized \ |
| 6 | +// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -scanner-module-validation \ |
7 | 7 | // RUN: %t/test.swift -o %t/deps.json -auto-bridging-header-chaining -scanner-output-dir %t -scanner-debug-write-output \
|
8 | 8 | // RUN: -Xcc -fmodule-map-file=%t/a.modulemap -Xcc -fmodule-map-file=%t/b.modulemap -import-objc-header %t/Bridging.h
|
9 | 9 |
|
|
17 | 17 |
|
18 | 18 | // RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps.json clang:SwiftShims > %t/shim.cmd
|
19 | 19 | // RUN: %swift_frontend_plain @%t/shim.cmd
|
20 |
| -// RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps.json Swift > %t/swift.cmd |
21 |
| -// RUN: %swift_frontend_plain @%t/swift.cmd |
22 | 20 | // RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps.json clang:B > %t/B.cmd
|
23 | 21 | // RUN: %swift_frontend_plain @%t/B.cmd
|
24 | 22 | // RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps.json clang:A > %t/A.cmd
|
|
51 | 49 | // RUN: -I %t %t/user2.swift -import-objc-header %t/Bridging2.h
|
52 | 50 |
|
53 | 51 | /// Importing binary module with bridging header from a module that has no bridging header.
|
54 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name User -module-cache-path %t/clang-module-cache -O \ |
55 |
| -// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \ |
| 52 | +// RUN: %target-swift-frontend -scan-dependencies -module-name User -module-cache-path %t/clang-module-cache -O -module-load-mode prefer-serialized \ |
| 53 | +// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -scanner-module-validation \ |
56 | 54 | // RUN: %t/user.swift -o %t/deps2.json -auto-bridging-header-chaining -scanner-output-dir %t -scanner-debug-write-output \
|
57 | 55 | // RUN: -Xcc -fmodule-map-file=%t/a.modulemap -Xcc -fmodule-map-file=%t/b.modulemap -I %t -enable-library-evolution
|
58 | 56 |
|
|
83 | 81 | // NO-OBJC-LEAKING-NOT: import __ObjC
|
84 | 82 |
|
85 | 83 | /// Importing binary module with bridging header from a module with bridging header using explicit build method with header chaining.
|
86 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name User -O \ |
87 |
| -// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \ |
| 84 | +// RUN: %target-swift-frontend -scan-dependencies -module-name User -O -module-load-mode prefer-serialized \ |
| 85 | +// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -scanner-module-validation \ |
88 | 86 | // RUN: -Xcc -fmodule-map-file=%t/a.modulemap -Xcc -fmodule-map-file=%t/b.modulemap \
|
89 | 87 | // RUN: -I %t %t/user2.swift -import-objc-header %t/Bridging2.h -auto-bridging-header-chaining -scanner-output-dir %t -scanner-debug-write-output \
|
90 | 88 | // RUN: -o %t/deps3.json
|
|
102 | 100 |
|
103 | 101 | // RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps3.json clang:SwiftShims > %t/shim2.cmd
|
104 | 102 | // RUN: %swift_frontend_plain @%t/shim2.cmd
|
105 |
| -// RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps3.json Swift > %t/swift2.cmd |
106 |
| -// RUN: %swift_frontend_plain @%t/swift2.cmd |
107 | 103 | // RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps3.json clang:B > %t/B2.cmd
|
108 | 104 | // RUN: %swift_frontend_plain @%t/B2.cmd
|
109 | 105 | // RUN: %{python} %S/../CAS/Inputs/BuildCommandExtractor.py %t/deps3.json clang:A > %t/A2.cmd
|
|
131 | 127 | // OBJC-HEADER-SAME: Bridging2.h
|
132 | 128 | // OBJC-HEADER-NOT: ChainedBridgingHeader.h
|
133 | 129 |
|
134 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name User -O \ |
135 |
| -// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \ |
| 130 | +// RUN: %target-swift-frontend -scan-dependencies -module-name User -O -module-load-mode prefer-serialized \ |
| 131 | +// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -scanner-module-validation \ |
136 | 132 | // RUN: -Xcc -fmodule-map-file=%t/a.modulemap -Xcc -fmodule-map-file=%t/b.modulemap \
|
137 | 133 | // RUN: -I %t %t/user2.swift -import-objc-header %t/Bridging3.h -auto-bridging-header-chaining -scanner-output-dir %t -scanner-debug-write-output \
|
138 | 134 | // RUN: -o %t/deps4.json -Rdependency-scan-cache -serialize-dependency-scan-cache -dependency-scan-cache-path %t/cache.moddepcache
|
139 | 135 |
|
140 | 136 | /// Make sure the cache is correct.
|
141 |
| -// RUN: %target-swift-frontend -scan-dependencies -module-name User -O \ |
142 |
| -// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \ |
| 137 | +// RUN: %target-swift-frontend -scan-dependencies -module-name User -O -module-load-mode prefer-serialized \ |
| 138 | +// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -scanner-module-validation \ |
143 | 139 | // RUN: -Xcc -fmodule-map-file=%t/a.modulemap -Xcc -fmodule-map-file=%t/b.modulemap \
|
144 | 140 | // RUN: -I %t %t/user2.swift -import-objc-header %t/Bridging3.h -auto-bridging-header-chaining -scanner-output-dir %t -scanner-debug-write-output \
|
145 | 141 | // RUN: -o %t/deps4.json -Rdependency-scan-cache -load-dependency-scan-cache -serialize-dependency-scan-cache \
|
|
0 commit comments