anchor.diff:  
   @set galliumcount=0
   
  +@set glswrast=n
   @if /I NOT "%llvmless%"=="y" set /p glswrast=Do you want to build Mesa3D softpipe and llvmpipe drivers (y/n):
   @if /I "%llvmless%"=="y" set /p glswrast=Do you want to build Mesa3D softpipe driver (y/n):
   @echo.
   @if /I "%glswrast%"=="y" set /a galliumcount+=1
   
  +@set zink=n
   @set canzink=0
   @IF NOT %toolchain%==msvc IF %intmesaver% GEQ 21000 set canzink=1
   @IF %toolchain%==msvc IF %intmesaver% GEQ 21200 set canzink=1
  
positive.code: @IF EXIST %devroot%\mesa\subprojects\DirectX-Headers.wrap IF %intmesaver% GEQ 21000 IF %toolchain%==msvc echo.
  @IF /I "%d3d12%"=="y" set /a galliumcount+=1
  
  @set canswr=0
  @if /I NOT "%llvmless%"=="y" if %abi%==x64 IF %toolchain%==msvc IF %intmesaver% LSS 20152 IF %disableootpatch%==0 set canswr=1
  @if /I NOT "%llvmless%"=="y" if %abi%==x64 IF %toolchain%==msvc IF %intmesaver% GEQ 20152 set canswr=1
  
negative.code: @if /I NOT "%gles%"=="y" set buildconf=%buildconf% -Dshared-glapi=auto -Dgles1=auto -Dgles2=auto
  
  @set osmesa=n
  @if /I "%glswrast%"=="y" IF %intmesaver% LSS 21000 set /p osmesa=Do you want to build off-screen rendering drivers (y/n):
  @if /I "%glswrast%"=="y" IF %intmesaver% GEQ 21000 set /p osmesa=Do you want to build off-screen rendering driver (y/n):
  @if /I "%glswrast%"=="y" echo.
  @rem osmesa classic is gone in Mesa 21.0 and newer
  @IF /I "%osmesa%"=="y" IF %intmesaver% GEQ 21000 set buildconf=%buildconf% -Dosmesa=true
  @IF /I "%osmesa%"=="y" IF %intmesaver% LSS 21000 set buildconf=%buildconf% -Dosmesa=gallium,classic
  