File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Sources/SwiftDriver/Toolchains Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,13 @@ extension Toolchain {
134
134
return path
135
135
} else if let path = try ? xcrunFind ( executable: executable) {
136
136
return path
137
+ } else if ![ " swift-frontend " , " swift " ] . contains ( executable) ,
138
+ let parentDirectory = try ? getToolPath ( . swiftCompiler) . parentDirectory,
139
+ parentDirectory != executableDir,
140
+ let path = lookupExecutablePath ( filename: executable, searchPaths: [ parentDirectory] ) {
141
+ // If the driver library's client and the frontend are in different directories,
142
+ // try looking for tools next to the frontend.
143
+ return path
137
144
} else if let path = lookupExecutablePath ( filename: executable, searchPaths: searchPaths) {
138
145
return path
139
146
} else if executable == " swift-frontend " {
You can’t perform that action at this time.
0 commit comments