Skip to content

Commit f46d841

Browse files
committed
[Test] Enable library-evolution in relevant tests using swiftinterfaces
1 parent c31727f commit f46d841

File tree

56 files changed

+81
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+81
-81
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -swift-version 5 -enforce-exclusivity=checked -module-name SIMod
2+
// swift-module-flags: -swift-version 5 -enforce-exclusivity=checked -module-name SIMod -enable-library-evolution
33
import CIMod
44

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name OtherModule -O
2+
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name OtherModule -O -enable-library-evolution
33

44
import Swift
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name Swift -parse-stdlib
2+
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name Swift -parse-stdlib -enable-library-evolution
33

44
public struct Int {}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name _Concurrency -parse-stdlib
2+
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name _Concurrency -parse-stdlib -enable-library-evolution
33

44
@frozen public enum Task {}

test/ModuleInterface/ModuleCache/Inputs/mock-sdk/ExportedLib.swiftinterface

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// 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
33

44
@_exported import SomeCModule
55

66
public struct ExportedInterface {
7-
@inlinable public init() {}
7+
@inlinable public init() { self.init() }
88
}
99
public var testValue: ExportedInterface {
1010
@inlinable get { return ExportedInterface() }

test/ModuleInterface/ModuleCache/Inputs/mock-sdk/SdkLib.swiftinterface

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 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
33

44
@_exported import ExportedLib
55

test/ModuleInterface/ModuleCache/Inputs/prebuilt-module-cache/Lib.swiftinterface

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -parse-stdlib -module-name Lib
2+
// swift-module-flags: -parse-stdlib -module-name Lib -enable-library-evolution
33

44
public struct FromInterface {
5-
@inlinable public init() {}
5+
@inlinable public init() { self.init() }
66
}
77
public var testValue: FromInterface {
88
@inlinable get { return FromInterface() }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -parse-stdlib -module-name LibExporter
2+
// swift-module-flags: -parse-stdlib -module-name LibExporter -enable-library-evolution
33

44
@_exported import Lib

test/ModuleInterface/ModuleCache/RebuildRemarks/malformed-compiled-module.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
77

88
// 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
1010

1111
// 3. Create an empty .swiftmodule, which will force recompiling from the interface
1212
// RUN: touch %t/Build/TestModule.swiftmodule
@@ -16,4 +16,4 @@
1616

1717
import TestModule // expected-remark {{rebuilding module 'TestModule' from interface}}
1818
// expected-note @-1 {{is out of date}}
19-
// expected-note @-2 {{malformed}}
19+
// expected-note @-2 {{malformed}}

test/ModuleInterface/ModuleCache/RebuildRemarks/missing-dependency.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
66

77
// 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
99

1010
// 3. Make the compiled module unreadable so it gets added as a dependency but is not used
1111
// RUN: mv %t/Build/TestModule.swiftmodule %t/Build/TestModule.swiftmodule.moved-aside

test/ModuleInterface/ModuleCache/RebuildRemarks/out-of-date-cached-module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
66

77
// 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
99

1010
// 3. Try to import the interface, which will pass and create a cached module
1111
// RUN: %target-swift-frontend -typecheck %s -I %t/Build -module-cache-path %t/ModuleCache

test/ModuleInterface/ModuleCache/RebuildRemarks/out-of-date-compiled-module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
66

77
// 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
99

1010
// 3. Build the .swiftinterface to a .swiftmodule, which will have a dependency on the interface
1111
// RUN: %target-swift-frontend -compile-module-from-interface -o %t/Build/TestModule.swiftmodule %t/Build/TestModule.swiftinterface

test/ModuleInterface/ModuleCache/RebuildRemarks/out-of-date-forwarding-module.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift
1111

1212
// 2. Create an interface for it
13-
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5
13+
// RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/Build/TestModule.swiftinterface -swift-version 5 -enable-library-evolution
1414

1515
// 3. Build the .swiftinterface to a .swiftmodule in the prebuilt cache, which will have a dependency on the interface
1616
// RUN: %target-swift-frontend -compile-module-from-interface %t/Build/TestModule.swiftinterface -o %t/PrebuiltCache/TestModule.swiftmodule

test/ModuleInterface/ModuleCache/SystemDependencies.swiftinterface

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swift-interface-format-version: 1.0
2-
// swift-module-flags: -module-name SystemDependencies
2+
// swift-module-flags: -module-name SystemDependencies -enable-library-evolution
33

44
// RUN: %empty-directory(%t)
55
// RUN: cp -r %S/Inputs/mock-sdk %t/mock-sdk

test/ModuleInterface/ModuleCache/module-cache-deployment-target-irrelevant.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
//
1313
// Phase 1: build LeafModule into a .swiftinterface file with -target %target-cpu-macosx-10.9:
1414
//
15-
// RUN: %swift -target %target-cpu-apple-macosx10.9 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -typecheck
15+
// RUN: %swift -target %target-cpu-apple-macosx10.9 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -typecheck -enable-library-evolution
1616
//
1717
// Phase 2: build OtherModule into a .swiftinterface file with -target %target-cpu-macosx-10.10:
1818
//
19-
// RUN: %swift -target %target-cpu-apple-macosx10.10 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -typecheck
19+
// RUN: %swift -target %target-cpu-apple-macosx10.10 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -typecheck -enable-library-evolution
2020
//
2121
// Phase 3: build TestModule in -target %target-cpu-apple-macosx10.11 and import both of these:
2222
//

test/ModuleInterface/ModuleCache/module-cache-diagnostics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
// Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
2727
//
2828
// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift
29-
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
29+
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
3030
// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface
31-
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
31+
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
3232
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface
3333
// RUN: %target-swift-frontend -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
3434
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule

test/ModuleInterface/ModuleCache/module-cache-effective-version-irrelevant.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
//
1010
// Phase 1: build LeafModule into a .swiftinterface file with -swift-version 4:
1111
//
12-
// RUN: %target-swift-frontend -swift-version 4 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -typecheck
12+
// RUN: %target-swift-frontend -swift-version 4 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -typecheck -enable-library-evolution
1313
//
1414
// Phase 2: build OtherModule into a .swiftinterface file with -swift-version 4.2:
1515
//
16-
// RUN: %target-swift-frontend -swift-version 4.2 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -typecheck
16+
// RUN: %target-swift-frontend -swift-version 4.2 -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -typecheck -enable-library-evolution
1717
//
1818
// Phase 3: build TestModule in -swift-version 5 and import both of these:
1919
//

test/ModuleInterface/ModuleCache/module-cache-errors-in-importing-file.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Setup phase 2: build the module.
1212
//
13-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/SomeModule.swiftinterface -module-name SomeModule %t/some-module.swift -emit-module -o /dev/null
13+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/SomeModule.swiftinterface -module-name SomeModule %t/some-module.swift -emit-module -o /dev/null -enable-library-evolution
1414

1515
// Actual test: compile and verify the import succeeds (i.e. we only report the error in this file)
1616
//

test/ModuleInterface/ModuleCache/module-cache-init.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
//
1010
// Phase 1: build LeafModule into a .swiftinterface file:
1111
//
12-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
12+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
1313
// RUN: test -f %t/LeafModule.swiftinterface
1414
// RUN: %FileCheck %s -check-prefix=CHECK-LEAFINTERFACE <%t/LeafModule.swiftinterface
1515
// CHECK-LEAFINTERFACE: LeafFunc
1616
//
1717
//
1818
// Phase 2: build OtherModule into a .swiftinterface _using_ LeafModule via LeafModule.swiftinterface, creating LeafModule-*.swiftmodule along the way.
1919
//
20-
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
20+
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
2121
// RUN: test -f %t/OtherModule.swiftinterface
2222
// RUN: %FileCheck %s -check-prefix=CHECK-OTHERINTERFACE <%t/OtherModule.swiftinterface
2323
// CHECK-OTHERINTERFACE: OtherFunc

test/ModuleInterface/ModuleCache/module-cache-intermediate-mtime-change-rebuilds-only-intermediate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
// Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
2020
//
2121
// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift
22-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
22+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
2323
// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface
24-
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
24+
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
2525
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface
2626
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
2727
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule

test/ModuleInterface/ModuleCache/module-cache-intermediate-size-change-rebuilds-only-intermediate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
// Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
1919
//
2020
// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift
21-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
21+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
2222
// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface
23-
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
23+
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
2424
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface
2525
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
2626
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule

test/ModuleInterface/ModuleCache/module-cache-leaf-mtime-change-rebuilds-all.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
// Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
2020
//
2121
// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift
22-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
22+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
2323
// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface
24-
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
24+
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
2525
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface
2626
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
2727
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule

test/ModuleInterface/ModuleCache/module-cache-leaf-size-change-rebuilds-all.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
// Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
1919
//
2020
// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift
21-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
21+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
2222
// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface
23-
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
23+
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
2424
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface
2525
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
2626
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule

test/ModuleInterface/ModuleCache/module-cache-no-rebuild.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
// Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
1919
//
2020
// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift
21-
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
21+
// RUN: %target-swift-frontend -I %t -emit-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null -enable-library-evolution
2222
// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface
23-
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
23+
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null -enable-library-evolution
2424
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface
2525
// RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
2626
// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule

test/ModuleInterface/can-import.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: echo 'public func externalFunc() {}' | %target-swift-frontend -typecheck -emit-module-interface-path %t/Library.swiftinterface -
2+
// RUN: echo 'public func externalFunc() {}' | %target-swift-frontend -typecheck -emit-module-interface-path %t/Library.swiftinterface - -enable-library-evolution
33
// RUN: %empty-directory(%t/LibraryWithoutThisArchitecture.swiftmodule)
4-
// RUN: echo 'public func externalFunc() {}' | %target-swift-frontend -typecheck -emit-module-interface-path %t/LibraryWithoutThisArchitecture.swiftmodule/arm40000-apple-ios.swiftinterface -
4+
// RUN: echo 'public func externalFunc() {}' | %target-swift-frontend -typecheck -emit-module-interface-path %t/LibraryWithoutThisArchitecture.swiftmodule/arm40000-apple-ios.swiftinterface - -enable-library-evolution
55
// RUN: %target-swift-frontend -typecheck %s -I %t
66

77
#if canImport(Library)

0 commit comments

Comments
 (0)