@@ -44,7 +44,6 @@ let package = Package(
44
44
name: " TSCTestSupport " ,
45
45
targets: [ " TSCTestSupport " ] ) ,
46
46
] ,
47
- dependencies: [ ] ,
48
47
targets: [
49
48
50
49
// MARK: Tools support core targets
@@ -63,17 +62,23 @@ let package = Package(
63
62
/** TSCBasic support library */
64
63
name: " TSCBasic " ,
65
64
dependencies: [
66
- " TSCLibc " ,
67
- " TSCclibc " ,
68
- . product( name: " SystemPackage " , package : " swift-system " ) ,
65
+ " TSCLibc " ,
66
+ " TSCclibc " ,
67
+ . product( name: " OrderedCollections " , package : " swift-collections " ) ,
68
+ . product( name: " SystemPackage " , package : " swift-system " ) ,
69
69
] ,
70
70
exclude: CMakeFiles + [ " README.md " ] ) ,
71
71
. target(
72
72
/** Abstractions for common operations, should migrate to TSCBasic */
73
73
name: " TSCUtility " ,
74
- dependencies: [ " TSCBasic " , " TSCclibc " ] ,
74
+ dependencies: [
75
+ " TSCBasic " ,
76
+ " TSCclibc " ,
77
+ . product( name: " OrderedCollections " , package : " swift-collections " ) ,
78
+ ] ,
75
79
exclude: CMakeFiles) ,
76
80
81
+
77
82
// MARK: Additional Test Dependencies
78
83
79
84
. target(
@@ -102,17 +107,19 @@ let package = Package(
102
107
)
103
108
104
109
/// When not using local dependencies, the branch to use for llbuild and TSC repositories.
105
- let relatedDependenciesBranch = " main "
110
+ let relatedDependenciesBranch = " main "
106
111
107
- if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
108
- package . dependencies += [
109
- . package ( url: " https://github.com/apple/swift-system.git " , . upToNextMinor( from: " 1.1.1 " ) ) ,
110
- ]
111
- } else {
112
+ if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
112
113
package . dependencies += [
113
- . package ( path: " ../swift-system " ) ,
114
- ]
115
- }
114
+ . package ( url: " https://github.com/apple/swift-collections.git " , . branch( " main " ) ) ,
115
+ . package ( url: " https://github.com/apple/swift-system.git " , . upToNextMinor( from: " 1.1.1 " ) ) ,
116
+ ]
117
+ } else {
118
+ package . dependencies += [
119
+ . package ( path: " ../swift-collections " ) ,
120
+ . package ( path: " ../swift-system " ) ,
121
+ ]
122
+ }
116
123
117
124
// FIXME: conditionalise these flags since SwiftPM 5.3 and earlier will crash
118
125
// for platforms they don't know about.
0 commit comments