Merge pull request #85010 from artemcm/AlwaysRebuildExplicitInterface

[Explicit Module Builds] Always rebuild the target module in explicit `-compile-module-from-interface` builds.
This commit is contained in:
Artem Chikin
2025-10-31 21:24:18 -04:00
committed by GitHub
6 changed files with 27 additions and 45 deletions

View File

@@ -1,14 +0,0 @@
// swift-interface-format-version: 1.0
// swift-module-flags: -parse-stdlib
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -compile-module-from-interface -module-name ExplicitModule -explicit-interface-module-build -o %/t/ExplicitModule.swiftmodule %s
// RUN: %target-swift-frontend -compile-module-from-interface -module-name ExplicitModule -explicit-interface-module-build -o %/t/ExplicitModule.swiftmodule %s -Rskip-explicit-interface-build 2>&1 | %FileCheck %s
import Swift
extension Int {
public static var fortytwo: Int = 42
}
// CHECK: <unknown>:0: remark: Skipped rebuilding module at {{.*}}ExplicitModule.swiftmodule - up-to-date