@@ -24,7 +24,7 @@ import func TSCBasic.memoize
24
24
import func TSCBasic. topologicalSort
25
25
26
26
/// The parameters required by `PIFBuilder`.
27
- struct PIFBuilderParameters {
27
+ package struct PIFBuilderParameters {
28
28
let triple : Basics . Triple
29
29
30
30
/// Whether the toolchain supports `-package-name` option.
@@ -47,6 +47,26 @@ struct PIFBuilderParameters {
47
47
48
48
/// The Swift language versions supported by the XCBuild being used for the buid.
49
49
let supportedSwiftVersions : [ SwiftLanguageVersion ]
50
+
51
+ package init (
52
+ triple: Basics . Triple ,
53
+ isPackageAccessModifierSupported: Bool ,
54
+ enableTestability: Bool ,
55
+ shouldCreateDylibForDynamicProducts: Bool ,
56
+ toolchainLibDir: AbsolutePath ,
57
+ pkgConfigDirectories: [ AbsolutePath ] ,
58
+ sdkRootPath: AbsolutePath ? ,
59
+ supportedSwiftVersions: [ SwiftLanguageVersion ]
60
+ ) {
61
+ self . triple = triple
62
+ self . isPackageAccessModifierSupported = isPackageAccessModifierSupported
63
+ self . enableTestability = enableTestability
64
+ self . shouldCreateDylibForDynamicProducts = shouldCreateDylibForDynamicProducts
65
+ self . toolchainLibDir = toolchainLibDir
66
+ self . pkgConfigDirectories = pkgConfigDirectories
67
+ self . sdkRootPath = sdkRootPath
68
+ self . supportedSwiftVersions = supportedSwiftVersions
69
+ }
50
70
}
51
71
52
72
/// PIF object builder for a package graph.
@@ -77,7 +97,7 @@ public final class PIFBuilder {
77
97
/// - parameters: The parameters used to configure the PIF.
78
98
/// - fileSystem: The file system to read from.
79
99
/// - observabilityScope: The ObservabilityScope to emit diagnostics to.
80
- init (
100
+ package init (
81
101
graph: ModulesGraph ,
82
102
parameters: PIFBuilderParameters ,
83
103
fileSystem: FileSystem ,
0 commit comments