Skip to content

Commit a90aac2

Browse files
committed
fixup
1 parent 15bbfe4 commit a90aac2

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Sources/PackageLoading/ManifestLoader.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

Sources/Workspace/UserToolchain.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)