Skip to content

Commit 8047543

Browse files
authored
Merge pull request #2976 from abertelrud/eng/clean-up-libswiftpm-target-dependencies
Correct and clean up some of the target dependencies in the closure of libSwiftPM
2 parents 49cfc46 + 006b3b9 commit 8047543

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ let package = Package(
109109
.target(
110110
/** Package model conventions and loading support */
111111
name: "PackageLoading",
112-
dependencies: ["SwiftToolsSupport-auto", "PackageModel", "SPMLLBuild"]),
112+
dependencies: ["SwiftToolsSupport-auto", "PackageModel"]),
113113

114114
// MARK: Package Dependency Resolution
115115

@@ -127,7 +127,7 @@ let package = Package(
127127
.target(
128128
/** Builds Modules and Products */
129129
name: "Build",
130-
dependencies: ["SwiftToolsSupport-auto", "SPMBuildCore", "PackageGraph", "LLBuildManifest", "SwiftDriver"]),
130+
dependencies: ["SwiftToolsSupport-auto", "SPMBuildCore", "PackageGraph", "LLBuildManifest", "SwiftDriver", "SPMLLBuild"]),
131131
.target(
132132
/** Support for building using Xcode's build system */
133133
name: "XCBuildSupport",
@@ -140,7 +140,7 @@ let package = Package(
140140
.target(
141141
/** High level functionality */
142142
name: "Workspace",
143-
dependencies: ["SwiftToolsSupport-auto", "Build", "PackageGraph", "PackageModel", "SourceControl", "Xcodeproj"]),
143+
dependencies: ["SwiftToolsSupport-auto", "SPMBuildCore", "PackageGraph", "PackageModel", "SourceControl", "Xcodeproj"]),
144144

145145
// MARK: Commands
146146

Sources/Build/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ target_link_libraries(Build PUBLIC
1818
TSCBasic
1919
PackageGraph
2020
LLBuildManifest
21-
SPMBuildCore)
21+
SPMBuildCore
22+
SPMLLBuild)
2223
target_link_libraries(Build PRIVATE
2324
SwiftDriver)
2425

Sources/PackageLoading/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ add_library(PackageLoading
2121
target_link_libraries(PackageLoading PUBLIC
2222
TSCBasic
2323
PackageModel
24-
TSCUtility
25-
SPMLLBuild)
24+
TSCUtility)
2625
if(Foundation_FOUND)
2726
target_link_libraries(PackageLoading PUBLIC
2827
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

Sources/Workspace/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This source file is part of the Swift.org open source project
22
#
3-
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
3+
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
44
# Licensed under Apache License v2.0 with Runtime Library Exception
55
#
66
# See http://swift.org/LICENSE.txt for license information
@@ -23,7 +23,7 @@ add_library(Workspace
2323
target_link_libraries(Workspace PUBLIC
2424
TSCBasic
2525
TSCUtility
26-
Build
26+
SPMBuildCore
2727
PackageGraph
2828
PackageLoading
2929
PackageModel

Sources/Workspace/Destination.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import TSCBasic
22
import TSCUtility
3-
import Build
43
import SPMBuildCore
54

65
public enum DestinationError: Swift.Error {

Sources/Workspace/UserToolchain.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import TSCBasic
1212
import TSCUtility
1313
import PackageLoading
1414
import SPMBuildCore
15-
import Build
1615
import Foundation
1716

1817
#if os(Windows)

0 commit comments

Comments
 (0)