anchor.diff:  set source_root=%CD%
   
   set full_build_root=%source_root%\build
  -set install_directory=%build_root%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr
  -
   mkdir %full_build_root%
  +
   :: Use the shortest path we can for the build directory, to avoid Windows
   :: path problems as much as we can.
   subst S: /d
   subst S: %full_build_root% %exitOnError%
   set build_root=S:
  +set install_directory=%build_root%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr
   
   call :clone_repositories %exitOnError%
   call :download_icu %exitOnError%
  
positive.code:     -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE%^
      -DCMAKE_C_COMPILER=clang-cl^
      -DCMAKE_CXX_COMPILER=clang-cl^
      -DCMAKE_SWIFT_COMPILER:PATH=%install_directory%\bin\swiftc.exe^
      -DSwift_DIR:PATH=%build_root%\swift\lib\cmake\swift^
      -DCMAKE_INSTALL_PREFIX:PATH=%install_directory%^
      -DBUILD_SHARED_LIBS:BOOL=YES^
      -DENABLE_TESTING:BOOL=NO^
      -DCMAKE_C_COMPILER_TARGET=x86_64-unknown-windows-msvc^
      -DENABLE_SWIFT:BOOL=YES^
      -DCMAKE_CXX_FLAGS:STRING="/GS- /Oy"^
      -DCMAKE_EXE_LINKER_FLAGS:STRING=/INCREMENTAL:NO^
      -DCMAKE_SHARED_LINKER_FLAGS:STRING=/INCREMENTAL:NO %exitOnError%
  
  popd
  
  
negative.code: endlocal
  
  
  :test_libdispatch
  :: Tests libdispatch C interface
  setlocal enableextensions enabledelayedexpansion
  
  cmake --build "%build_root%\swift-corelibs-libdispatch" --target ExperimentalTest %exitOnError%
  
  goto :eof
  endlocal
  
  
  :end
  