Skip to content

Commit ddd991f

Browse files
committed
[ToolingInterface] Fix getSingleFrontendInvocationFromDriverArgumentsV3 to avoid adding driver path to arguments
The path to the driver is passed down already and it would be added to the arguments by `getSingleFrontendInvocationFromDriverArgumentsV5`.
1 parent ac6be4d commit ddd991f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDriver/ToolingInterface/ToolingUtil.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public func getSingleFrontendInvocationFromDriverArgumentsV3(driverPath: UnsafeP
5656

5757
// Bridge the argv equivalent
5858
let argListBufferPtr = UnsafeBufferPointer<UnsafePointer<CChar>?>(start: argList, count: Int(argListCount))
59-
let bridgedArgList = [bridgedDriverPath] + argListBufferPtr.map { String(cString: $0!) }
59+
let bridgedArgList = argListBufferPtr.map { String(cString: $0!) }
6060

6161
// Bridge the action callback
6262
let bridgedAction: ([String]) -> Bool = { args in

0 commit comments

Comments
 (0)