File tree Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
+ // RUN: %empty-directory(%t/ModuleCache)
2
3
// RUN: %{python} %utils/split_file.py -o %t %s
3
- // RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/a.swift 2> %t/a.hash
4
- // RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/b.swift 2> %t/b.hash
4
+ // RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/a.swift -module-cache-path %t/ModuleCache 2> %t/a.hash
5
+ // RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/b.swift -module-cache-path %t/ModuleCache 2> %t/b.hash
5
6
// RUN: cmp %t/a.hash %t/b.hash
6
7
7
8
// BEGIN a.swift
Original file line number Diff line number Diff line change 1
- // UNSUPPORTED: OS=windows-msvc
2
-
3
- // rdar://124402245
4
- // UNSUPPORTED: OS=linux-gnu
5
-
6
1
// When adding a private protocol method, the interface hash should stay the same
7
2
// The per-type fingerprint should change
8
3
9
4
// RUN: %empty-directory(%t)
5
+ // RUN: %empty-directory(%t/ModuleCache)
10
6
// RUN: %{python} %utils/split_file.py -o %t %s
11
7
// RUN: cp %t/{a,x}.swift
12
- // RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
8
+ // RUN: env SWIFT_FORCE_MODULE_LOADING=prefer-interface %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main -module-cache-path %t/ModuleCache -Rmodule-loading
13
9
// RUN: %{python} %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.py %swift-dependency-tool %t/x.swiftdeps > %t/a-processed.swiftdeps
14
10
// RUN: cp %t/{b,x}.swift
15
- // RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
11
+ // RUN: env SWIFT_FORCE_MODULE_LOADING=prefer-interface %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main -module-cache-path %t/ModuleCache -Rmodule-loading
16
12
// RUN: %{python} %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.py %swift-dependency-tool %t/x.swiftdeps > %t/b-processed.swiftdeps
17
13
18
14
// RUN: diff %t/a-processed.swiftdeps %t/b-processed.swiftdeps
Original file line number Diff line number Diff line change 1
- // UNSUPPORTED: OS=windows-msvc
2
-
3
- // rdar://124402245
4
- // UNSUPPORTED: OS=linux-gnu
5
-
6
1
// When adding a private protocol method, the interface hash should stay the same
7
2
// The per-type fingerprint should change
8
3
9
4
// RUN: %empty-directory(%t)
5
+ // RUN: %empty-directory(%t/ModuleCache)
10
6
// RUN: %{python} %utils/split_file.py -o %t %s
11
7
// RUN: cp %t/{a,x}.swift
12
- // RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
8
+ // RUN: env SWIFT_FORCE_MODULE_LOADING=prefer-interface %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main -module-cache-path %t/ModuleCache -Rmodule-loading
13
9
// RUN: %{python} %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.py %swift-dependency-tool %t/x.swiftdeps > %t/a-processed.swiftdeps
14
10
// RUN: cp %t/{b,x}.swift
15
- // RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
11
+ // RUN: env SWIFT_FORCE_MODULE_LOADING=prefer-interface %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main -module-cache-path %t/ModuleCache -Rmodule-loading
16
12
// RUN: %{python} %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.py %swift-dependency-tool %t/x.swiftdeps > %t/b-processed.swiftdeps
17
13
18
- // RUN: cmp %t/a-processed.swiftdeps %t/b-processed.swiftdeps
14
+ // RUN: diff %t/a-processed.swiftdeps %t/b-processed.swiftdeps
19
15
20
16
// BEGIN a.swift
21
17
class C {
You can’t perform that action at this time.
0 commit comments