Skip to content

Commit 99a0fe7

Browse files
committed
Fix binary artifacts not resolving with large SwiftPM packages.
* Do not fail if the dependency target does not yet exist in the build plan's target map. Signed-off-by: furby™ <[email protected]>
1 parent 5efd210 commit 99a0fe7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/Build/BuildManifest/LLBuildManifestBuilder+Clang.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,10 @@ extension LLBuildManifestBuilder {
5454

5555
case .library(.automatic), .library(.static), .plugin:
5656
for module in product.modules {
57-
guard let dependencyDescription = self.plan.description(
57+
let dependencyDescription = self.plan.description(
5858
for: module,
5959
context: product.type == .plugin ? .host : target.destination
60-
) else
61-
{
62-
throw InternalError("unknown module: \(module)")
63-
}
60+
)
6461
addStaticTargetInputs(dependencyDescription)
6562
}
6663
case .test:

0 commit comments

Comments
 (0)