anchor.diff:  md %build_root%\tmp
   set TMPDIR=%build_root%\tmp
   
  -md %build_root%\tmp\org.llvm.clang
  +md %build_root%\tmp\org.llvm.clang.9999
   set CUSTOM_CLANG_MODULE_CACHE=%build_root%\tmp\org.llvm.clang.9999
   
   md %build_root%\tmp\org.swift.package-manager
  
positive.code:     -DCMAKE_CXX_FLAGS:STRING="/GS- /Oy"^
      -DCMAKE_EXE_LINKER_FLAGS:STRING=/INCREMENTAL:NO^
      -DCMAKE_SHARED_LINKER_FLAGS:STRING=/INCREMENTAL:NO^
      -S "%source_root%\llvm" %exitOnError%
  
  cmake --build "%build_root%\llvm" %exitOnError%
  cmake --build "%build_root%\llvm" --target install %exitOnError%
  
negative.code: :: It supposes the %CD% is the source root.
  setlocal enableextensions enabledelayedexpansion
  
  if defined REPO_SCHEME SET "scheme_arg=--scheme %REPO_SCHEME%"
  
  git -C "%source_root%\swift" config --local core.autocrlf input
  git -C "%source_root%\swift" config --local core.symlink true
  git -C "%source_root%\swift" checkout-index --force --all
  
  :: Always skip Swift, since it is checked out by Jenkins
  @set "skip_repositories_arg=--skip-repository swift"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository llbuild"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository indexstore-db"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository ninja"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository sourcekit-lsp"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-argument-parser"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-corelibs-foundation"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-corelibs-xctest"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-driver"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-format"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-integration-tests"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swiftpm"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-stress-tester"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-syntax"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-tools-support-core"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository swift-xcode-playground-support"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository tensorflow-swift-apis"
  @set "skip_repositories_arg=%skip_repositories_arg% --skip-repository yams"
  
  call "%source_root%\swift\utils\update-checkout.cmd" %scheme_arg% %skip_repositories_arg% --clone --skip-history --github-comment "%ghprbCommentBody%" >NUL 2>NUL
  
  goto :eof
  endlocal
  