anchor.diff:  @set msys2=%mesa%msys64\msys2_shell.cmd
   @if EXIST "%msys2%" @set mingwtest=%mingwtest%2
   @rem if %mingwtest%==12 @set /p mingw=Do you want to build with MinGW-W64 instead of Visual Studio (y=yes):
  -@set buildmingw=
  +@set mesatoolchain=default
  +@set restartcond=0
   @set PATH=%mesa%Python\%abi%\;%mesa%Python\%abi%\Scripts\;%mesa%flexbison\;%mesa%m4\%abi%\usr\bin\;%PATH%
   @pip install -U mako
   @pip freeze > requirements.txt
  
positive.code: @if %abi%==x64 set minabi=64
  @set vsenv=%ProgramFiles%
  @if NOT "%ProgramW6432%"=="" set vsenv=%vsenv% (x86)
  @set vsenv=%vsenv%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%minabi%.bat
  @if EXIST "%vsenv%" @set toolchain=Visual Studio 15 2017
  @if NOT EXIST "%vsenv%" @set toolchain=Visual Studio 14
  @if NOT EXIST "%vsenv%" @set vsenv=%VS140COMNTOOLS%..\..\VC\bin\vcvars%minabi%.bat
  @if %abi%==x64 @set toolchain=%toolchain% Win64
  @set gcc=%mesa%mingw-w64-%abi%\mingw%minabi%\bin
  @set vsenvloaded=0
  
negative.code: @if /i NOT %mingw%==y GOTO build_with_vs
  
  :build_with_mingw
  @set mesatoolchain=crossmingw
  @copy "%gcc%\%altabi%-w64-mingw32-gcc-ar.exe" "%gcc%\%altabi%-w64-mingw32-ar.exe"
  @copy "%gcc%\%altabi%-w64-mingw32-gcc-ranlib.exe" "%gcc%\%altabi%-w64-mingw32-ranlib.exe"
  @call "%msys2%" -use-full-path
  