|
25 | 25 | // RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps-2.json Test casFSRootID > %t/root-2.casid |
26 | 26 | // RUN: diff %t/root-1.casid %t/root-2.casid |
27 | 27 |
|
28 | | -// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps-1.json clang:SwiftShims > %t/shim.cmd |
29 | | -// RUN: %swift_frontend_plain @%t/shim.cmd |
30 | | -// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps-1.json bridgingHeader > %t/header.cmd |
| 28 | +// RUN: %{python} %S/../../utils/swift-build-modules.py --cas %t/cas %swift_frontend_plain %t/deps-1.json -o %t/MyApp.cmd -b %t/header.cmd |
| 29 | + |
31 | 30 | // RUN: %target-swift-frontend @%t/header.cmd /^header/Bridging.h -disable-implicit-swift-modules -O -o %t/bridging.pch |
32 | 31 | // RUN: %cache-tool -cas-path %t/cas -cache-tool-action print-output-keys -- \ |
33 | 32 | // RUN: %target-swift-frontend @%t/header.cmd /^header/Bridging.h -disable-implicit-swift-modules -O -o %t/bridging.pch > %t/keys.json |
34 | 33 | // RUN: %{python} %S/Inputs/ExtractOutputKey.py %t/keys.json > %t/key |
35 | 34 |
|
36 | | -// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps-1.json Test > %t/MyApp.cmd |
37 | 35 | // RUN: echo "\"-disable-implicit-string-processing-module-import\"" >> %t/MyApp.cmd |
38 | 36 | // RUN: echo "\"-disable-implicit-concurrency-module-import\"" >> %t/MyApp.cmd |
39 | | -// RUN: echo "\"-disable-implicit-swift-modules\"" >> %t/MyApp.cmd |
40 | 37 | // RUN: echo "\"-import-objc-header\"" >> %t/MyApp.cmd |
41 | 38 | // RUN: echo "\"/^header/Bridging.h\"" >> %t/MyApp.cmd |
42 | 39 | // RUN: echo "\"-import-pch\"" >> %t/MyApp.cmd |
43 | 40 | // RUN: echo "\"%t/bridging.pch\"" >> %t/MyApp.cmd |
44 | 41 | // RUN: echo "\"-bridging-header-pch-key\"" >> %t/MyApp.cmd |
45 | 42 | // RUN: echo "\"@%t/key\"" >> %t/MyApp.cmd |
46 | | -// RUN: echo "\"-explicit-swift-module-map-file\"" >> %t/MyApp.cmd |
47 | | -// RUN: echo "\"@%t/map.casid\"" >> %t/MyApp.cmd |
48 | | -// RUN: %{python} %S/Inputs/GenerateExplicitModuleMap.py %t/deps-1.json > %t/map.json |
49 | | -// RUN: llvm-cas --cas %t/cas --make-blob --data %t/map.json > %t/map.casid |
50 | 43 | // RUN: %target-swift-frontend -cache-compile-job -module-name Test -O -cas-path %t/cas @%t/MyApp.cmd /^tmp/test.swift \ |
51 | 44 | // RUN: -emit-module -o %t/Test.swiftmodule |
52 | 45 |
|
|
0 commit comments