Skip to content

Commit 1ef0e3e

Browse files
authored
Merge pull request #1527 from owenv/pr/ovoorhees/emb-incremental-fix
Fix explicit modules incremental build failure when only the clang module of a mixed-source module requires rebuild
2 parents 8f88ff2 + df16fca commit 1ef0e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDriver/IncrementalCompilation/IncrementalDependencyAndInputSetup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ extension IncrementalCompilationState.IncrementalDependencyAndInputSetup {
211211
buildRecordInfo: BuildRecordInfo,
212212
reporter: IncrementalCompilationState.Reporter?) throws -> Bool {
213213
for module in graph.modules {
214-
if module.key.moduleName == graph.mainModuleName {
214+
if module.key == .swift(graph.mainModuleName) {
215215
continue
216216
}
217217
if try !verifyModuleDependencyUpToDate(moduleID: module.key,

0 commit comments

Comments
 (0)