We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec15a1 commit e0de0afCopy full SHA for e0de0af
Sources/swift-driver/main.swift
@@ -63,7 +63,7 @@ do {
63
if case .subcommand(let subcommand) = mode {
64
// We are running as a subcommand, try to find the subcommand adjacent to the executable we are running as.
65
// If we didn't find the tool there, let the OS search for it.
66
- let subcommandPath = Process.findExecutable(arguments[0])?.parentDirectory.appending(component: subcommand)
+ let subcommandPath = Process.findExecutable(CommandLine.arguments[0])?.parentDirectory.appending(component: subcommand)
67
?? Process.findExecutable(subcommand)
68
69
if subcommandPath == nil || !localFileSystem.exists(subcommandPath!) {
0 commit comments