       let diagnosticEngine = DiagnosticsEngine(handlers: [
         {print($0, to: &stderrStream); stderrStream.flush()}
       ])
-      var driver = try Driver(args: args, env: ProcessEnv.vars,
+      var driver = try Driver(args: allArgs, env: ProcessEnv.vars,
                               diagnosticsEngine: diagnosticEngine,
                               fileSystem: localFileSystem)
       doIt(&driver)

    #endif
  }

  func testIncremental() throws {
    try testIncremental(checkDiagnostics: false)
  }

      ],
      whenAutolinking: autolinkLifecycleExpectations)
  }
  func tryTouchingMainAlwaysRebuildDependents(_ checkDiagnostics: Bool) {
    touch("main")
    let extraArgument = "-driver-always-rebuild-dependents"
    try! doABuild(
      "non-propagating but \(extraArgument)",
      checkDiagnostics: checkDiagnostics,
      extraArguments: [extraArgument],
      expectingRemarks: [
        "Incremental compilation: Scheduing changed input {compile: main.o <= main.swift}",
        "Incremental compilation: May skip current input: {compile: other.o <= other.swift}",
        "Incremental compilation: Queuing (initial): {compile: main.o <= main.swift}",
        "Incremental compilation: scheduling dependents of main.swift; -driver-always-rebuild-dependents",
        "Incremental compilation: Traced: interface of top-level name foo from: main.swift -> implementation of other.swiftdeps from: other.swift",
        "Incremental compilation: Found dependent of main.swift: {compile: other.o <= other.swift}",
        "Incremental compilation: Immediately scheduling dependent on main.swift {compile: other.o <= other.swift}",
        "Incremental compilation: Queuing (dependent): {compile: other.o <= other.swift}",
        "Found 2 batchable jobs",
        "Forming into 1 batch",
        "Adding {compile: main.swift} to batch 0",
        "Adding {compile: other.swift} to batch 0",
        "Forming batch job from 2 constituents: main.swift, other.swift",
        "Incremental compilation: Queuing Compiling main.swift, other.swift",
        "Starting Compiling main.swift, other.swift",
        "Finished Compiling main.swift, other.swift",
        "Starting Linking theModule",
        "Finished Linking theModule",
      ],
      whenAutolinking: autolinkLifecycleExpectations)
  }


  func touch(_ name: String) {
    print("*** touching \(name) ***", to: &stderrStream); stderrStream.flush()
