Skip to content

Commit 8c9069d

Browse files
authored
Pass through the allowExtensionTargets flag from the Workspace to PackageGraph. This lets clients of libSwiftPM enable the experimental support for package extensions. (#3300)
1 parent 25032bc commit 8c9069d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Workspace/Workspace.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ extension Workspace {
647647
createREPLProduct: Bool = false,
648648
forceResolvedVersions: Bool = false,
649649
diagnostics: DiagnosticsEngine,
650+
allowExtensionTargets: Bool = false,
650651
xcTestMinimumDeploymentTargets: [PackageModel.Platform:PlatformVersion]? = nil
651652
) throws -> PackageGraph {
652653

@@ -684,6 +685,7 @@ extension Workspace {
684685
diagnostics: diagnostics,
685686
fileSystem: fileSystem,
686687
shouldCreateMultipleTestProducts: createMultipleTestProducts,
688+
allowExtensionTargets: allowExtensionTargets,
687689
createREPLProduct: createREPLProduct
688690
)
689691
}

0 commit comments

Comments
 (0)