@@ -343,9 +343,10 @@ public struct Driver {
343
343
/// expand response files, etc. By default this is the local filesystem.
344
344
/// - Parameter executor: Used by the driver to execute jobs. The default argument
345
345
/// is present to streamline testing, it shouldn't be used in production.
346
- /// - Parameter externalBuildArtifacts: All external artifacts a build system may pass in as input to the explicit
347
- /// build of the current module. Consists of a map of externally-built targets, and a map of all previously
348
- /// discovered/scanned modules.
346
+ /// - Parameter externalTargetModulePathMap: All external artifacts a build system may pass in as input to the explicit
347
+ /// build of the current module. Consists of a map of externally-built targets, and their corresponding binary modules.
348
+ /// - Parameter interModuleDependencyOracle: A dependency oracle instance, re-used in multiple-target builds
349
+ /// to make use of caching of common dependency scanning queries
349
350
public init (
350
351
args: [ String ] ,
351
352
env: [ String : String ] = ProcessEnv . vars,
@@ -354,9 +355,6 @@ public struct Driver {
354
355
executor: DriverExecutor ,
355
356
integratedDriver: Bool = true ,
356
357
compilerExecutableDir: AbsolutePath ? = nil ,
357
- // FIXME: Duplication with externalBuildArtifacts and externalTargetModulePathMap
358
- // is a temporary backwards-compatibility shim to help transition SwiftPM to the new API
359
- externalBuildArtifacts: ExternalBuildArtifacts ? = nil ,
360
358
externalTargetModulePathMap: ExternalTargetModulePathMap ? = nil ,
361
359
interModuleDependencyOracle: InterModuleDependencyOracle ? = nil
362
360
) throws {
@@ -367,12 +365,6 @@ public struct Driver {
367
365
self . diagnosticEngine = diagnosticsEngine
368
366
self . executor = executor
369
367
370
- if let externalArtifacts = externalBuildArtifacts {
371
- self . externalBuildArtifacts = externalArtifacts
372
- } else if let externalTargetPaths = externalTargetModulePathMap {
373
- self . externalBuildArtifacts = ( externalTargetPaths, [ : ] )
374
- }
375
-
376
368
if case . subcommand = try Self . invocationRunMode ( forArgs: args) . mode {
377
369
throw Error . subcommandPassedToDriver
378
370
}
@@ -463,14 +455,6 @@ public struct Driver {
463
455
self . interModuleDependencyOracle = dependencyOracle
464
456
} else {
465
457
self . interModuleDependencyOracle = InterModuleDependencyOracle ( )
466
-
467
- // This is a shim for backwards-compatibility with ModuleInfoMap-based API
468
- // used by SwiftPM
469
- if let externalArtifacts = externalBuildArtifacts {
470
- if !externalArtifacts. 1 . isEmpty {
471
- try self . interModuleDependencyOracle. mergeModules ( from: externalArtifacts. 1 )
472
- }
473
- }
474
458
}
475
459
476
460
self . fileListThreshold = try Self . computeFileListThreshold ( & self . parsedOptions, diagnosticsEngine: diagnosticsEngine)
0 commit comments