File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,20 @@ import SIMod
5
5
6
6
// Step 0: Copy relevant files into the temp dir which will serve as the search path
7
7
// RUN: cp %S/Inputs/implicit-options-inheritance/module.modulemap %t/module.modulemap
8
+ // RUN: cp %S/Inputs/implicit-options-inheritance/test-dummy.modulemap %t/test-dummy.modulemap
8
9
// RUN: cp %S/Inputs/implicit-options-inheritance/CIMod.h %t/CIMod.h
9
10
// RUN: cp %S/Inputs/implicit-options-inheritance/SIMod.swiftinterface %t/SIMod.swiftinterface
10
11
11
12
// Step 1: Build this file, causing an implicit build of SIMod and CIMod into the module cache.
12
13
// Pass in a clang arg pointing it to a modulemap that has nothing to do with downstream modules and is not on the search path.
13
14
14
- // RUN: %target-swift-frontend -emit-module -module-name no-implicit-extra-clang-maps -o %t/no-implicit-extra-clang-maps.swiftmodule %s -I %t -Xcc -fmodule-map-file=%S/Inputs/implicit-options-inheritance /test-dummy.modulemap -module-cache-path %t/ModuleCache
15
+ // RUN: %target-swift-frontend -emit-module -module-name no-implicit-extra-clang-maps -o %t/no-implicit-extra-clang-maps.swiftmodule %s -I %t -Xcc -fmodule-map-file=%t /test-dummy.modulemap -module-cache-path %t/ModuleCache
15
16
16
17
// Step 2: Touch the dummy modulemap we passed in with `-Xcc -fmodule-map-file` above.
17
- // RUN: touch %S/Inputs/implicit-options-inheritance /test-dummy.modulemap
18
+ // RUN: touch %t /test-dummy.modulemap
18
19
19
20
// Step 3: Re-build this file, and ensure we are not re-building SIMod due to a dependency on the dummy file
20
- // RUN: %target-swift-frontend -emit-module -module-name no-implicit-extra-clang-maps -o %t/no-implicit-extra-clang-maps.swiftmodule %s -I %t -Xcc -fmodule-map-file=%S/Inputs/implicit-options-inheritance /test-dummy.modulemap -module-cache-path %t/ModuleCache -Rmodule-interface-rebuild 2>&1 | %FileCheck -allow-empty %s
21
+ // RUN: %target-swift-frontend -emit-module -module-name no-implicit-extra-clang-maps -o %t/no-implicit-extra-clang-maps.swiftmodule %s -I %t -Xcc -fmodule-map-file=%t /test-dummy.modulemap -module-cache-path %t/ModuleCache -Rmodule-interface-rebuild 2>&1 | %FileCheck -allow-empty %s
21
22
22
23
// Step 4: Ensure that SIMod was not re-built
23
24
// CHECK-NOT: remark: rebuilding module 'SIMod' from interface
You can’t perform that action at this time.
0 commit comments