@@ -30,13 +30,12 @@ public extension Driver {
3030 // Construct the scanning job.
3131 return Job ( moduleName: moduleOutputInfo. name,
3232 kind: . scanDependencies,
33- tool: VirtualPath . absolute ( try toolchain. getToolPath ( . swiftCompiler) ) ,
33+ tool: try toolchain. resolvedTool ( . swiftCompiler) ,
3434 commandLine: commandLine,
3535 displayInputs: inputs,
3636 inputs: inputs,
3737 primaryInputs: [ ] ,
38- outputs: [ TypedVirtualPath ( file: . standardOutput, type: . jsonDependencies) ] ,
39- supportsResponseFiles: false )
38+ outputs: [ TypedVirtualPath ( file: . standardOutput, type: . jsonDependencies) ] )
4039 }
4140
4241 /// Generate a full command-line invocation to be used for the dependency scanning action
@@ -263,13 +262,12 @@ public extension Driver {
263262 // Construct the scanning job.
264263 return Job ( moduleName: moduleOutputInfo. name,
265264 kind: . scanDependencies,
266- tool: VirtualPath . absolute ( try toolchain. getToolPath ( . swiftCompiler) ) ,
265+ tool: try toolchain. resolvedTool ( . swiftCompiler) ,
267266 commandLine: commandLine,
268267 displayInputs: inputs,
269268 inputs: inputs,
270269 primaryInputs: [ ] ,
271- outputs: [ TypedVirtualPath ( file: . standardOutput, type: . jsonDependencies) ] ,
272- supportsResponseFiles: false )
270+ outputs: [ TypedVirtualPath ( file: . standardOutput, type: . jsonDependencies) ] )
273271 }
274272
275273 /// Precompute the dependencies for a given collection of modules using swift frontend's batch scanning mode
@@ -312,13 +310,12 @@ public extension Driver {
312310 // Construct the scanning job.
313311 return Job ( moduleName: moduleOutputInfo. name,
314312 kind: . scanDependencies,
315- tool: VirtualPath . absolute ( try toolchain. getToolPath ( . swiftCompiler) ) ,
313+ tool: try toolchain. resolvedTool ( . swiftCompiler) ,
316314 commandLine: commandLine,
317315 displayInputs: inputs,
318316 inputs: inputs,
319317 primaryInputs: [ ] ,
320- outputs: outputs,
321- supportsResponseFiles: false )
318+ outputs: outputs)
322319 }
323320
324321 /// Serialize a collection of modules into an input format expected by the batch module dependency scanner.
0 commit comments