File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/SwiftDriver/Driver Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2061,8 +2061,10 @@ extension Driver {
20612061 toolDirectory: toolDir)
20622062
20632063 // Find the Swift compiler executable.
2064+ let hasFrontendBeenRedirectedForTesting : Bool
20642065 let swiftCompilerPrefixArgs : [ String ]
20652066 if let frontendPath = parsedOptions. getLastArgument ( . driverUseFrontendPath) {
2067+ hasFrontendBeenRedirectedForTesting = true
20662068 var frontendCommandLine =
20672069 frontendPath. asSingle. split ( separator: " ; " ) . map { String ( $0) }
20682070 if frontendCommandLine. isEmpty {
@@ -2075,11 +2077,9 @@ extension Driver {
20752077 swiftCompilerPrefixArgs = frontendCommandLine
20762078 }
20772079 } else {
2080+ hasFrontendBeenRedirectedForTesting = false
20782081 swiftCompilerPrefixArgs = [ ]
20792082 }
2080- var hasFrontendBeenRedirectedForTesting : Bool {
2081- return !swiftCompilerPrefixArgs. isEmpty
2082- }
20832083
20842084 // Find the SDK, if any.
20852085 let sdkPath : VirtualPath ? = Self . computeSDKPath (
You can’t perform that action at this time.
0 commit comments