|
1 | 1 | /*
|
2 | 2 | This source file is part of the Swift.org open source project
|
3 | 3 |
|
4 |
| - Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors |
| 4 | + Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors |
5 | 5 | Licensed under Apache License v2.0 with Runtime Library Exception
|
6 | 6 |
|
7 | 7 | See http://swift.org/LICENSE.txt for license information
|
@@ -189,23 +189,22 @@ public struct PackageGraphLoader {
|
189 | 189 | // FIXME: Lift this out of the manifest.
|
190 | 190 | let packagePath = manifest.path.parentDirectory
|
191 | 191 |
|
192 |
| - // Create a package from the manifest and sources. |
193 |
| - let builder = PackageBuilder( |
194 |
| - manifest: manifest, |
195 |
| - productFilter: node.productFilter, |
196 |
| - path: packagePath, |
197 |
| - additionalFileRules: additionalFileRules, |
198 |
| - remoteArtifacts: remoteArtifacts, |
199 |
| - xcTestMinimumDeploymentTargets: xcTestMinimumDeploymentTargets, |
200 |
| - fileSystem: fileSystem, |
201 |
| - diagnostics: diagnostics, |
202 |
| - shouldCreateMultipleTestProducts: shouldCreateMultipleTestProducts, |
203 |
| - createREPLProduct: manifest.packageKind == .root ? createREPLProduct : false |
204 |
| - ) |
205 |
| - |
206 | 192 | let packageLocation = PackageLocation.Local(name: manifest.name, packagePath: packagePath)
|
207 | 193 | diagnostics.with(location: packageLocation) { diagnostics in
|
208 | 194 | diagnostics.wrap {
|
| 195 | + // Create a package from the manifest and sources. |
| 196 | + let builder = PackageBuilder( |
| 197 | + manifest: manifest, |
| 198 | + productFilter: node.productFilter, |
| 199 | + path: packagePath, |
| 200 | + additionalFileRules: additionalFileRules, |
| 201 | + remoteArtifacts: remoteArtifacts, |
| 202 | + xcTestMinimumDeploymentTargets: xcTestMinimumDeploymentTargets, |
| 203 | + fileSystem: fileSystem, |
| 204 | + diagnostics: diagnostics, |
| 205 | + shouldCreateMultipleTestProducts: shouldCreateMultipleTestProducts, |
| 206 | + createREPLProduct: manifest.packageKind == .root ? createREPLProduct : false |
| 207 | + ) |
209 | 208 | let package = try builder.construct()
|
210 | 209 | manifestToPackage[manifest] = package
|
211 | 210 |
|
|
0 commit comments