     }
     let modulePrebuildJobs = try generateExplicitModuleBuildJobs()
     if parsedOptions.contains(.driverExplicitModuleBuild) {
-      addJobs(modulePrebuildJobs)
+      modulePrebuildJobs.forEach(addJob)
     }
 
     // If we've been asked to prebuild module dependencies,

             "Merge module job should only have one swiftmodule output")
      let wrapJob = try moduleWrapJob(moduleInput: mergeModuleOutputs[0])
      addJob(wrapJob)
      addLinkerInputs(wrapJob.outputs)
    } else {
      addLinkerInputs(mergeJob.outputs)
    }
  }



  private mutating func addAutolinkExtractJob(
    linkerInputs: [TypedVirtualPath],
    addLinkerInput: (TypedVirtualPath) -> Void,
    addJob: (Job) -> Void)
  throws
  {
    let autolinkInputs = linkerInputs.filter { $0.type == .object }
    if let autolinkExtractJob = try autolinkExtractJob(inputs: autolinkInputs) {
      addJob(autolinkExtractJob)
      autolinkExtractJob.outputs.forEach(addLinkerInput)
    }
  }

  private mutating func addWrapJobOrMergeOutputs(mergeJob: Job,
                                                 debugInfo: DebugInfo,
                                                 addJob: (Job) -> Void,
                                                 addLinkerInput: (TypedVirtualPath) -> Void)
  throws {
    guard case .astTypes = debugInfo.level
    else { return }
