Skip to content

Commit fb4ff8b

Browse files
authored
Extract more build-related content from _InternalTestSupport (#8242)
Move XCBuildSupport dependencies to the _InternalBuildTestSupport target. This helps further separate the "data model" and build components of SwiftPM
1 parent 6d165c3 commit fb4ff8b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ let package = Package(
693693
name: "_InternalBuildTestSupport",
694694
dependencies: [
695695
"Build",
696+
"XCBuildSupport",
696697
"_InternalTestSupport"
697698
],
698699
swiftSettings: [
@@ -714,7 +715,6 @@ let package = Package(
714715
.product(name: "TSCTestSupport", package: "swift-tools-support-core"),
715716
.product(name: "OrderedCollections", package: "swift-collections"),
716717
"Workspace",
717-
"XCBuildSupport",
718718
],
719719
swiftSettings: [
720720
.unsafeFlags(["-static"]),
@@ -853,7 +853,7 @@ let package = Package(
853853
),
854854
.testTarget(
855855
name: "XCBuildSupportTests",
856-
dependencies: ["XCBuildSupport", "_InternalTestSupport"],
856+
dependencies: ["XCBuildSupport", "_InternalTestSupport", "_InternalBuildTestSupport"],
857857
exclude: ["Inputs/Foo.pc"]
858858
),
859859
// Examples (These are built to ensure they stay up to date with the API.)

Tests/XCBuildSupportTests/PIFBuilderTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import PackageLoading
2020
@testable import PackageModel
2121
import SPMBuildCore
2222
import _InternalTestSupport
23+
import _InternalBuildTestSupport
2324
@testable import XCBuildSupport
2425
import XCTest
2526

0 commit comments

Comments
 (0)