Skip to content

Commit 9f581f6

Browse files
fabianehlertBenchR267
authored andcommitted
[llbuild-analyze] Update dependencies to be compatible with Swift 5.5
1 parent 0f88ee4 commit 9f581f6

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

products/llbuild-analyze/Package.resolved

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
77
"state": {
88
"branch": null,
9-
"revision": "f6ac7b8118ff5d1bc0faee7f37bf6f8fd8f95602",
10-
"version": "0.0.1"
9+
"revision": "986d191f94cec88f6350056da59c2e59e83d1229",
10+
"version": "0.4.3"
1111
}
1212
},
1313
{
1414
"package": "swift-tools-support-core",
1515
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git",
1616
"state": {
17-
"branch": "master",
18-
"revision": "fcaa2ce5a852b5355aed5808a6610dc8b6dcf27e",
17+
"branch": "main",
18+
"revision": "3b6b97d612b56e25d80d0807f5bc38ea08b7bdf3",
1919
"version": null
2020
}
2121
}

products/llbuild-analyze/Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ let package = Package(
1616
targets: ["llbuildAnalyzeTool"]),
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "0.0.1"),
20-
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("master")),
19+
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "0.4.3"),
20+
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("main")),
2121
.package(path: "../../"),
2222
],
2323
targets: [

products/llbuild-analyze/Sources/CriticalPathTool.swift

+9-9
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ struct CriticalPathTool: ParsableCommand {
3333
@Option(name: .shortAndLong, help: "Path to generate exported output to.", transform: { AbsolutePath($0) })
3434
var output: AbsolutePath?
3535

36-
@Option(default: 9)
37-
var clientSchemaVersion: Int
36+
@Option
37+
var clientSchemaVersion: Int = 9
3838

39-
@Option(name: [.customShort("f"), .customLong("outputFormat")], default: .json, help: "The format of the output file.")
40-
var outputFormat: OutputFormat
39+
@Option(name: [.customShort("f"), .customLong("outputFormat")], help: "The format of the output file.")
40+
var outputFormat: OutputFormat = .json
4141

42-
@Option(name: .customLong("graphvizOutput"), default: .criticalPath)
43-
var graphvizDisplay: GraphvizDisplay
42+
@Option(name: .customLong("graphvizOutput"))
43+
var graphvizDisplay: GraphvizDisplay = .criticalPath
4444

4545
@Flag(help: "If outputFormat is set to json, it will be pretty formatted.")
46-
var pretty: Bool
46+
var pretty: Bool = false
4747

4848
@Flag(name: .shortAndLong, help: "Set to hide output to stdout and export only.")
49-
var quiet: Bool
50-
49+
var quiet: Bool = false
50+
5151
func run() throws {
5252
let db = try BuildDB(path: database.pathString, clientSchemaVersion: UInt32(clientSchemaVersion))
5353
let allKeysWithResult = try db.getKeysWithResult()

0 commit comments

Comments
 (0)