File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
// swift-tools-version:5.7
2
2
3
3
import PackageDescription
4
+ import Foundation
4
5
5
6
let package = Package (
6
7
name: " CodeGeneration " ,
@@ -11,8 +12,7 @@ let package = Package(
11
12
. executable( name: " generate-swiftsyntax " , targets: [ " generate-swiftsyntax " ] )
12
13
] ,
13
14
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 " ) ) ,
15
+ . package ( path: " .. " ) ,
16
16
] ,
17
17
targets: [
18
18
. executableTarget(
@@ -41,3 +41,14 @@ let package = Package(
41
41
) ,
42
42
]
43
43
)
44
+
45
+ if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
46
+ // Building standalone.
47
+ package . dependencies += [
48
+ . package ( url: " https://github.com/apple/swift-argument-parser.git " , . upToNextMinor( from: " 1.2.2 " ) ) ,
49
+ ]
50
+ } else {
51
+ package . dependencies += [
52
+ . package ( path: " ../../swift-argument-parser " ) ,
53
+ ]
54
+ }
You can’t perform that action at this time.
0 commit comments