File tree 5 files changed +6
-6
lines changed
test/ModuleInterface/ModuleCache
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
// swift-interface-format-version: 1.0
2
- // swift-module-flags: -parse-stdlib -module-name ExportedLib
2
+ // swift-module-flags: -parse-stdlib -module-name ExportedLib -enable-library-evolution
3
3
4
4
@_exported import SomeCModule
5
5
Original file line number Diff line number Diff line change 1
1
// swift-interface-format-version: 1.0
2
- // swift-module-flags: -parse-stdlib -module-name SdkLib
2
+ // swift-module-flags: -parse-stdlib -module-name SdkLib -enable-library-evolution
3
3
4
4
@_exported import ExportedLib
5
5
Original file line number Diff line number Diff line change 6
6
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
7
7
8
8
// 2. Create an interface for it
9
- // RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5
9
+ // RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -enable-library-evolution
10
10
11
11
// 3. Create an empty .swiftmodule, which will force recompiling from the interface
12
12
// RUN: touch %t/Build/TestModule.swiftmodule
16
16
17
17
import TestModule // expected-remark {{rebuilding module 'TestModule' from interface}}
18
18
// expected-note @-1 {{is out of date}}
19
- // expected-note @-2 {{malformed}}
19
+ // expected-note @-2 {{malformed}}
Original file line number Diff line number Diff line change 5
5
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
6
6
7
7
// 2. Create both an interface and a compiled module for it
8
- // RUN: %target-swift-frontend -emit-module -o %t/Build/TestModule.swiftmodule %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -module-name TestModule
8
+ // RUN: %target-swift-frontend -emit-module -o %t/Build/TestModule.swiftmodule %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -module-name TestModule -enable-library-evolution
9
9
10
10
// 3. Make the compiled module unreadable so it gets added as a dependency but is not used
11
11
// RUN: mv %t/Build/TestModule.swiftmodule %t/Build/TestModule.swiftmodule.moved-aside
Original file line number Diff line number Diff line change 5
5
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
6
6
7
7
// 2. Create an interface for it
8
- // RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5
8
+ // RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -enable-library-evolution
9
9
10
10
// 3. Try to import the interface, which will pass and create a cached module
11
11
// RUN: %target-swift-frontend -typecheck %s -I %t/Build -module-cache-path %t/ModuleCache
You can’t perform that action at this time.
0 commit comments