@@ -66,6 +66,28 @@ let swiftBuildSettings: [SwiftSetting] = [
66
66
. define( " SWIFT_CORELIBS_FOUNDATION_HAS_THREADS " ) ,
67
67
]
68
68
69
+ var dependencies : [ Package . Dependency ] {
70
+ if Context . environment [ " SWIFTCI_USE_LOCAL_DEPS " ] != nil {
71
+ [
72
+ . package (
73
+ name: " swift-foundation-icu " ,
74
+ path: " ../swift-foundation-icu " ) ,
75
+ . package (
76
+ name: " swift-foundation " ,
77
+ path: " ../swift-foundation " )
78
+ ]
79
+ } else {
80
+ [
81
+ . package (
82
+ url: " https://github.com/apple/swift-foundation-icu " ,
83
+ from: " 0.0.8 " ) ,
84
+ . package (
85
+ url: " https://github.com/apple/swift-foundation " ,
86
+ revision: " ef8a7787c355edae3c142e4dff8767d05a32c51f " )
87
+ ]
88
+ }
89
+ }
90
+
69
91
let package = Package (
70
92
name: " swift-corelibs-foundation " ,
71
93
// Deployment target note: This package only builds for non-Darwin targets.
@@ -76,16 +98,7 @@ let package = Package(
76
98
. library( name: " FoundationNetworking " , targets: [ " FoundationNetworking " ] ) ,
77
99
. executable( name: " plutil " , targets: [ " plutil " ] ) ,
78
100
] ,
79
- dependencies: [
80
- . package (
81
- url: " https://github.com/apple/swift-foundation-icu " ,
82
- from: " 0.0.8 "
83
- ) ,
84
- . package (
85
- url: " https://github.com/apple/swift-foundation " ,
86
- revision: " ef8a7787c355edae3c142e4dff8767d05a32c51f "
87
- ) ,
88
- ] ,
101
+ dependencies: dependencies,
89
102
targets: [
90
103
. target(
91
104
name: " Foundation " ,
0 commit comments