|
6 | 6 |
|
7 | 7 | // RUN: sed -e "s|OUT_DIR|%t/redirects|g" -e "s|IN_DIR|%S/Inputs/CHeaders|g" %t/overlay_template.yaml > %t/overlay.yaml
|
8 | 8 | // RUN: sed -e "s|OUT_DIR|%t/redirects|g" -e "s|IN_DIR|%S/Inputs/CHeaders1|g" %t/overlay_template.yaml > %t/overlay1.yaml
|
| 9 | +// RUN: sed -e "s|OUT_DIR|%t/redirects|g" -e "s|IN_DIR|%S/Inputs/CHeaders2|g" %t/overlay_template.yaml > %t/overlay2.yaml |
9 | 10 |
|
10 | 11 | // RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/module-cache %t/test.swift -o %t/deps.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -file-compilation-dir %t -Xcc -ivfsoverlay -Xcc %t/overlay.yaml
|
11 | 12 | // RUN: %validate-json %t/deps.json > %t/validated_deps.json
|
12 | 13 | // RUN: cat %t/validated_deps.json | %FileCheck %s
|
13 | 14 |
|
14 | 15 | // RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/module-cache %t/test.swift -o %t/deps1.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -file-compilation-dir %t -Xcc -ivfsoverlay -Xcc %t/overlay1.yaml
|
15 | 16 | // RUN: %validate-json %t/deps1.json > %t/validated_deps1.json
|
16 |
| -// RUN: cat %t/validated_deps.json %t/validated_deps1.json \ |
| 17 | +// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/module-cache %t/test.swift -o %t/deps2.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -experimental-clang-importer-direct-cc1-scan -file-compilation-dir %t -Xcc -ivfsoverlay -Xcc %t/overlay2.yaml |
| 18 | +// RUN: %validate-json %t/deps2.json > %t/validated_deps2.json |
| 19 | +// RUN: cat %t/validated_deps.json %t/validated_deps1.json %t/validated_deps2.json \ |
17 | 20 | // RUN: | %FileCheck %s --check-prefix=MOD-HASH
|
18 | 21 |
|
19 | 22 | //--- overlay_template.yaml
|
@@ -92,3 +95,14 @@ import F
|
92 | 95 | // MOD-HASH: "-swift-module-file=Swift={{.*}}{{/|\\}}Swift-[[SHASH]].swiftmodule",
|
93 | 96 | // MOD-HASH: "-swift-module-file=SwiftOnoneSupport={{.*}}{{/|\\}}SwiftOnoneSupport-[[SOSHASH]].swiftmodule",
|
94 | 97 | // MOD-HASH: ],
|
| 98 | +// MOD-HASH: "mainModuleName": "deps2", |
| 99 | +// MOD-HASH: "linkLibraries": [], |
| 100 | +// MOD-HASH: "details": { |
| 101 | +// MOD-HASH-NEXT: "swift": { |
| 102 | +// MOD-HASH-NEXT: "moduleInterfacePath": "{{.*}}{{/|\\}}F.swiftinterface", |
| 103 | +// MOD-HASH: "commandLine": [ |
| 104 | +// MOD-HASH: "-o", |
| 105 | +// MOD-HASH-NEXT: "{{.*}}{{/|\\}}F-[[FHASH]].swiftmodule", |
| 106 | +// MOD-HASH: "-swift-module-file=Swift={{.*}}{{/|\\}}Swift-[[SHASH]].swiftmodule", |
| 107 | +// MOD-HASH: "-swift-module-file=SwiftOnoneSupport={{.*}}{{/|\\}}SwiftOnoneSupport-[[SOSHASH]].swiftmodule", |
| 108 | +// MOD-HASH: ], |
0 commit comments