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

        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.
          if partitions.partitions[partitionIdx].first! != input {
            continue
          }

          primaryInputs = partitions.partitions[partitionIdx]

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

    if (parsedOptions.hasArgument(.driverShowJobLifecycle)) {
      stdoutStream.write("Found \(swiftInputFiles.count) batchable jobs\n")
      stdoutStream.write("Forming into \(numPartitions) batches\n")
      stdoutStream.flush()
    }

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