 
   /// Sadly, has to be `var` for formBatchedJobs
   private var driver: Driver
-
-  /// Track required jobs that haven't finished so the build record can record the corresponding
-  /// input statuses.
-  private var unfinishedCompileJobs: Set<Job>
 
   /// Keyed by primary input. As required compilations are discovered after the first wave, these shrink.
   private var skippedCompileGroups = [TypedVirtualPath: CompileJobGroup]()


    self.skippedCompileGroups = initial.skippedCompileGroups
    self.mandatoryJobsInOrder = initial.mandatoryJobsInOrder
    self.unfinishedCompileJobs = Set(self.mandatoryJobsInOrder.filter{$0.kind.isCompile})
    self.jobsAfterCompiles = jobsInPhases.afterCompiles
    self.moduleDependencyGraph = initial.graph
    self.driver = driver

          "Queuing because of dependencies discovered later:", input)
      }
    }
    return try getJobs(for: invalidatedInputs)
  }

  /// After `job` finished find out which inputs must compiled that were not known to need compilation before
