File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ let package = Package(
10
10
products: [
11
11
. executable( name: " generate-swiftsyntax " , targets: [ " generate-swiftsyntax " ] )
12
12
] ,
13
- dependencies: [
14
- . package ( url: " https://github.com/apple/swift-syntax.git " , revision: " 94120e0cf9bf541e54fbc8512934daea23a9ad0c " ) ,
15
- . package ( url: " https://github.com/apple/swift-argument-parser.git " , . upToNextMinor( from: " 1.2.2 " ) ) ,
16
- ] ,
17
13
targets: [
18
14
. executableTarget(
19
15
name: " generate-swiftsyntax " ,
@@ -41,3 +37,16 @@ let package = Package(
41
37
) ,
42
38
]
43
39
)
40
+
41
+ if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
42
+ // Building standalone.
43
+ package . dependencies += [
44
+ . package ( url: " https://github.com/apple/swift-syntax.git " , revision: " 94120e0cf9bf541e54fbc8512934daea23a9ad0c " ) ,
45
+ . package ( url: " https://github.com/apple/swift-argument-parser.git " , . upToNextMinor( from: " 1.2.2 " ) ) ,
46
+ ]
47
+ } else {
48
+ package . dependencies += [
49
+ . package ( path: " .. " ) ,
50
+ . package ( path: " ../../swift-argument-parser " ) ,
51
+ ]
52
+ }
You can’t perform that action at this time.
0 commit comments