Skip to content

Commit

Permalink
[llbuild-analyze] Update dependencies to be compatible with Swift 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianehlert authored and BenchR267 committed Jul 14, 2021
1 parent 0f88ee4 commit 9f581f6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions products/llbuild-analyze/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "f6ac7b8118ff5d1bc0faee7f37bf6f8fd8f95602",
"version": "0.0.1"
"revision": "986d191f94cec88f6350056da59c2e59e83d1229",
"version": "0.4.3"
}
},
{
"package": "swift-tools-support-core",
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git",
"state": {
"branch": "master",
"revision": "fcaa2ce5a852b5355aed5808a6610dc8b6dcf27e",
"branch": "main",
"revision": "3b6b97d612b56e25d80d0807f5bc38ea08b7bdf3",
"version": null
}
}
Expand Down
4 changes: 2 additions & 2 deletions products/llbuild-analyze/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let package = Package(
targets: ["llbuildAnalyzeTool"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "0.0.1"),
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("master")),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "0.4.3"),
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("main")),
.package(path: "../../"),
],
targets: [
Expand Down
18 changes: 9 additions & 9 deletions products/llbuild-analyze/Sources/CriticalPathTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ struct CriticalPathTool: ParsableCommand {
@Option(name: .shortAndLong, help: "Path to generate exported output to.", transform: { AbsolutePath($0) })
var output: AbsolutePath?

@Option(default: 9)
var clientSchemaVersion: Int
@Option
var clientSchemaVersion: Int = 9

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

@Option(name: .customLong("graphvizOutput"), default: .criticalPath)
var graphvizDisplay: GraphvizDisplay
@Option(name: .customLong("graphvizOutput"))
var graphvizDisplay: GraphvizDisplay = .criticalPath

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

@Flag(name: .shortAndLong, help: "Set to hide output to stdout and export only.")
var quiet: Bool

var quiet: Bool = false
func run() throws {
let db = try BuildDB(path: database.pathString, clientSchemaVersion: UInt32(clientSchemaVersion))
let allKeysWithResult = try db.getKeysWithResult()
Expand Down

0 comments on commit 9f581f6

Please sign in to comment.