Skip to content

Commit 643e5f5

Browse files
committed
build: synchronise dependencies with reality
This adjusts the dependency graph to match the reality of the sources.
1 parent 71ab073 commit 643e5f5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ let package = Package(
493493
name: "CoreCommands",
494494
dependencies: [
495495
.product(name: "ArgumentParser", package: "swift-argument-parser"),
496+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
496497
"Basics",
497498
"Build",
498499
"PackageLoading",
@@ -513,9 +514,11 @@ let package = Package(
513514
dependencies: [
514515
.product(name: "ArgumentParser", package: "swift-argument-parser"),
515516
.product(name: "OrderedCollections", package: "swift-collections"),
517+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
516518
"Basics",
517519
"Build",
518520
"CoreCommands",
521+
"LLBuildManifest",
519522
"PackageGraph",
520523
"PackageModelSyntax",
521524
"SourceControl",
@@ -598,7 +601,7 @@ let package = Package(
598601
.executableTarget(
599602
/** The main executable provided by SwiftPM */
600603
name: "swift-package",
601-
dependencies: ["Basics", "Commands"],
604+
dependencies: ["Commands"],
602605
exclude: ["CMakeLists.txt"]
603606
),
604607
.executableTarget(

Sources/CoreCommands/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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)