Skip to content

Commit ffd78a7

Browse files
authored
[ModuleGraph] Bring back original check for implicit system libraries (#8824)
The original check was about system libraries only, the new one checks all of the implicit modules.
1 parent 1d9a8f6 commit ffd78a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/PackageGraph/ModulesGraph+Loading.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,12 @@ private func createResolvedPackages(
680680
// Get all implicit system library dependencies in this package.
681681
let implicitSystemLibraryDeps = packageBuilder.dependencies
682682
.flatMap(\.modules)
683-
.filter(\.module.implicit)
683+
.filter {
684+
if case let systemLibrary as SystemLibraryModule = $0.module {
685+
return systemLibrary.implicit
686+
}
687+
return false
688+
}
684689

685690
let packageDoesNotSupportProductAliases = packageBuilder.package.doesNotSupportProductAliases
686691
let lookupByProductIDs = !packageDoesNotSupportProductAliases &&

0 commit comments

Comments
 (0)