[Explicit Module Builds] Always rebuild the target module in explicit -compile-module-from-interface builds.

We have long switched to delegate the checking of whether a module is up-to-date to the build system (SwiftDriver) and stopped serializing file dependencies for interface-built binary modules.

Resolves rdar://162881032
This commit is contained in:
Artem Chikin
2025-10-20 10:23:02 -07:00
parent 2af325f2ff
commit 4cdbcb8645
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