File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,26 @@ public final class ManifestLoader: ManifestLoaderProtocol {
111111 self . operationQueue. maxConcurrentOperationCount = Concurrency . maxOperations
112112 }
113113
114+ // deprecated 8/2021
115+ @available ( * , deprecated, message: " use non-deprecated constructor instead " )
116+ public convenience init (
117+ manifestResources: ToolchainConfiguration ,
118+ serializedDiagnostics: Bool = false ,
119+ isManifestSandboxEnabled: Bool = true ,
120+ cacheDir: AbsolutePath ? = nil ,
121+ delegate: ManifestLoaderDelegate ? = nil ,
122+ extraManifestFlags: [ String ] = [ ]
123+ ) {
124+ self . init (
125+ toolchain: manifestResources,
126+ serializedDiagnostics: serializedDiagnostics,
127+ isManifestSandboxEnabled: isManifestSandboxEnabled,
128+ cacheDir: cacheDir,
129+ delegate: delegate,
130+ extraManifestFlags: extraManifestFlags
131+ )
132+ }
133+
114134 /// Loads a root manifest from a path using the resources associated with a particular `swiftc` executable.
115135 ///
116136 /// - Parameters:
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ public final class UserToolchain: Toolchain {
3737
3838 public var extraCPPFlags : [ String ]
3939
40+ // deprecated 8/2021
41+ @available ( * , deprecated, message: " use configuration instead " )
42+ public var manifestResources : ToolchainConfiguration {
43+ return self . configuration
44+ }
45+
4046 /// Path of the `swift` interpreter.
4147 public var swiftInterpreter : AbsolutePath {
4248 return swiftCompiler. parentDirectory. appending ( component: " swift " + hostExecutableSuffix)
You can’t perform that action at this time.
0 commit comments