File tree 6 files changed +23
-3
lines changed 6 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ endif()
42
42
find_package (dispatch QUIET )
43
43
find_package (Foundation QUIET )
44
44
find_package (Yams CONFIG REQUIRED)
45
+ find_package (ArgumentParser CONFIG REQUIRED)
45
46
46
47
add_subdirectory (Sources )
47
48
add_subdirectory (cmake/modules)
Original file line number Diff line number Diff line change 5
5
"package" : " swift-argument-parser" ,
6
6
"repositoryURL" : " https://github.com/apple/swift-argument-parser.git" ,
7
7
"state" : {
8
+ <<<<<<< HEAD
8
9
"branch" : null ,
9
10
"revision" : " 15351c1cd009eba0b6e438bfef55ea9847a8dc4a" ,
10
11
"version" : " 0.3.0"
12
+ =======
13
+ <<<<<<< HEAD
14
+ "branch" : " master" ,
15
+ "revision" : " 15351c1cd009eba0b6e438bfef55ea9847a8dc4a" ,
16
+ "version" : null
17
+ =======
18
+ "branch" : null ,
19
+ "revision" : " 223d62adc52d51669ae2ee19bdb8b7d9fd6fcd9c" ,
20
+ "version" : " 0.0.6"
21
+ >>>>>>> Add swift-argument-parser to the cmake build
22
+ >>>>>>> Add swift-argument-parser to the cmake build
11
23
}
12
24
},
13
25
{
Original file line number Diff line number Diff line change @@ -74,8 +74,13 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
74
74
if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
75
75
package . dependencies += [
76
76
. package ( url: " https://github.com/apple/swift-tools-support-core.git " , . branch( " master " ) ) ,
77
+ <<<<<<< HEAD
77
78
. package ( url: " https://github.com/jpsim/Yams.git " , . upToNextMinor( from: " 4.0.0 " ) ) ,
78
79
. package ( url: " https://github.com/apple/swift-argument-parser.git " , . exact( " 0.3.0 " ) )
80
+ =======
81
+ . package ( url: " https://github.com/jpsim/Yams.git " , . branch( " master " ) ) ,
82
+ . package ( url: " https://github.com/apple/swift-argument-parser.git " , . exact( " 0.0.6 " ) )
83
+ >>>>>>> Add swift- argument- parser to the cmake build
79
84
]
80
85
} else {
81
86
package . dependencies += [
Original file line number Diff line number Diff line change @@ -44,11 +44,12 @@ all with CMake:
44
44
```
45
45
cmake -B <llbuild-build-dir> -G Ninja <llbuild-source-dir> -DLLBUILD_SUPPORT_BINDINGS="Swift"
46
46
```
47
+ * [ swift-argument-parser] ( https://github.com/apple/swift-argument-parser )
47
48
* [ Yams] ( https://github.com/jpsim/Yams )
48
49
49
50
Once those dependencies have built, build ` swift-driver ` itself:
50
51
```
51
- cmake -B <swift-driver-build-dir> -G Ninja <swift-driver-source-dir> -DTSC_DIR=<swift-tools-support-core-build-dir>/cmake/modules -DLLBuild_DIR=<llbuild-build-dir>/cmake/modules -DYams_DIR=<yamls-build-dir>/cmake/modules
52
+ cmake -B <swift-driver-build-dir> -G Ninja <swift-driver-source-dir> -DTSC_DIR=<swift-tools-support-core-build-dir>/cmake/modules -DLLBuild_DIR=<llbuild-build-dir>/cmake/modules -DYams_DIR=<yamls-build-dir>/cmake/modules -DArgumentParser_DIR=<swift-argument-parser-build-dir>
52
53
cmake --build <swift-driver-build-dir>
53
54
```
54
55
Original file line number Diff line number Diff line change 9
9
add_executable (swift-help
10
10
main.swift)
11
11
target_link_libraries (swift-help PUBLIC
12
- SwiftOptions)
12
+ SwiftOptions
13
+ ArgumentParser)
13
14
Original file line number Diff line number Diff line change 12
12
import SwiftOptions
13
13
import ArgumentParser
14
14
15
- extension DriverKind : ExpressibleByArgument , Decodable { }
15
+ extension DriverKind : ExpressibleByArgument { }
16
16
17
17
struct SwiftHelp : ParsableCommand {
18
18
@ArgumentParser . Option ( name: . customLong( " tool " , withSingleDash: true ) ,
You can’t perform that action at this time.
0 commit comments