                                                startupOptions: startupOptions,
                                                buildOptions: buildOptions,
                                                progressNotifier: progressNotifier) {
-                                                (process: Process, debugInfo: String) -> Void in
+                                                (process: Process, generatedArtifacts: [String]?, debugInfo: String) -> Void in
        defer { semaphore.signal() }
        processDebugInfo = debugInfo
     }

                               completionInfo.terminationStatus,
                               stderr)

        self.removeGeneratedSymlinks()
        terminationHandler(completionInfo.process, debugInfo)
    }

    return process
  }

  private func removeGeneratedSymlinks() {

  /// Path to the build events JSON file.
  private let buildEventsFilePath: String

  private typealias CompletionHandler = (Process, [String]?, String) -> Void

  init(bazelURL: URL,
       workspaceRootURL: URL,
