1
1
// swift-tools-version:5.1
2
2
import PackageDescription
3
+ import class Foundation. ProcessInfo
3
4
4
5
let package = Package (
5
6
name: " swift-driver " ,
@@ -20,11 +21,6 @@ let package = Package(
20
21
name: " SwiftOptions " ,
21
22
targets: [ " SwiftOptions " ] ) ,
22
23
] ,
23
- dependencies: [
24
- . package ( url: " https://github.com/apple/swift-tools-support-core.git " , . branch( " master " ) ) ,
25
- . package ( url: " https://github.com/apple/swift-llbuild.git " , . branch( " master " ) ) ,
26
- . package ( url: " https://github.com/jpsim/Yams.git " , . branch( " master " ) ) ,
27
- ] ,
28
24
targets: [
29
25
/// The driver library.
30
26
. target(
@@ -59,3 +55,17 @@ let package = Package(
59
55
] ,
60
56
cxxLanguageStandard: . cxx14
61
57
)
58
+
59
+ if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
60
+ package . dependencies += [
61
+ . package ( url: " https://github.com/apple/swift-tools-support-core.git " , . branch( " master " ) ) ,
62
+ . package ( url: " https://github.com/apple/swift-llbuild.git " , . branch( " master " ) ) ,
63
+ . package ( url: " https://github.com/jpsim/Yams.git " , . branch( " master " ) ) ,
64
+ ]
65
+ } else {
66
+ package . dependencies += [
67
+ . package ( path: " ../swiftpm/swift-tools-support-core " ) ,
68
+ . package ( path: " ../yams " ) ,
69
+ . package ( path: " ../llbuild " ) ,
70
+ ]
71
+ }
0 commit comments