We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cff526 commit 8ca4695Copy full SHA for 8ca4695
Sources/SwiftBuildSupport/PIFBuilder.swift
@@ -119,10 +119,12 @@ public final class PIFBuilder {
119
}
120
121
#if canImport(SwiftBuild)
122
+
123
+ private var cachedPIF: PIF.TopLevelObject?
124
125
/// Constructs a `PIF.TopLevelObject` representing the package graph.
126
private func construct() throws -> PIF.TopLevelObject {
- try memoize(to: &self.pif) {
127
+ try memoize(to: &self.cachedPIF) {
128
guard let rootPackage = self.graph.rootPackages.only else {
129
if self.graph.rootPackages.isEmpty {
130
throw PIFGenerationError.rootPackageNotFound
0 commit comments