 //
 //===----------------------------------------------------------------------===//
 
+import TSCBasic
+
 public enum PlanningError: Error, DiagnosticData {
   case replReceivedInput
   case emitPCMWrongInputFiles

    }
    let numPartitions = numberOfBatchPartitions(info, swiftInputFiles: swiftInputFiles)

    // If there is only one partition, fast path.
    if numPartitions == 1 {
      var assignment = [TypedVirtualPath: Int]()

        if let partitions = partitions, let partitionIdx = partitions.assignment[input] {
          // We have a partitioning for batch mode. If this input file isn't the first
          // file in the partition, skip it: it's been accounted for already.
          let partition = partitions.partitions[partitionIdx]
          if partition[0] != input {
            continue
          }

          if parsedOptions.hasArgument(.driverShowJobLifecycle) {
            stdoutStream.write("Forming batch job from \(partition.count) constituents\n")
          }

          primaryInputs = partitions.partitions[partitionIdx]
