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 {
111
111
self . operationQueue. maxConcurrentOperationCount = Concurrency . maxOperations
112
112
}
113
113
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
+
114
134
/// Loads a root manifest from a path using the resources associated with a particular `swiftc` executable.
115
135
///
116
136
/// - Parameters:
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ public final class UserToolchain: Toolchain {
37
37
38
38
public var extraCPPFlags : [ String ]
39
39
40
+ // deprecated 8/2021
41
+ @available ( * , deprecated, message: " use configuration instead " )
42
+ public var manifestResources : ToolchainConfiguration {
43
+ return self . configuration
44
+ }
45
+
40
46
/// Path of the `swift` interpreter.
41
47
public var swiftInterpreter : AbsolutePath {
42
48
return swiftCompiler. parentDirectory. appending ( component: " swift " + hostExecutableSuffix)
You can’t perform that action at this time.
0 commit comments