Skip to content

Commit 4681cee

Browse files
committed
build: synchronise dependencies with reality
This adjusts the dependency graph to match the reality of the sources.
1 parent a0aae3a commit 4681cee

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Package.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ let package = Package(
489489
name: "CoreCommands",
490490
dependencies: [
491491
.product(name: "ArgumentParser", package: "swift-argument-parser"),
492+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
492493
"Basics",
493494
"Build",
494495
"PackageLoading",
@@ -509,9 +510,11 @@ let package = Package(
509510
dependencies: [
510511
.product(name: "ArgumentParser", package: "swift-argument-parser"),
511512
.product(name: "OrderedCollections", package: "swift-collections"),
513+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
512514
"Basics",
513515
"Build",
514516
"CoreCommands",
517+
"LLBuildManifest",
515518
"PackageGraph",
516519
"PackageModelSyntax",
517520
"SourceControl",
@@ -594,7 +597,7 @@ let package = Package(
594597
.executableTarget(
595598
/** The main executable provided by SwiftPM */
596599
name: "swift-package",
597-
dependencies: ["Basics", "Commands"],
600+
dependencies: ["Commands"],
598601
exclude: ["CMakeLists.txt"]
599602
),
600603
.executableTarget(

Sources/CoreCommands/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ target_link_libraries(CoreCommands PUBLIC
1616
Basics
1717
Build
1818
PackageGraph
19+
PackageModel
20+
PackageLoading
1921
TSCBasic
2022
TSCUtility
2123
Workspace

Sources/swift-package/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
add_executable(swift-package
1010
Entrypoint.swift)
1111
target_link_libraries(swift-package PRIVATE
12-
Commands
13-
TSCBasic)
12+
Commands)
1413

1514
target_compile_options(swift-package PRIVATE
1615
-parse-as-library)

0 commit comments

Comments
 (0)