anchor.diff:  wget -q https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
   REM Using 'set /p' prints without CRLF newline characters, which sha256sum can't handle.
   REM If sha256sum fails, 'exit /b 1' will terminate batch with error code 1.
  -echo | set /p dummy="2c1888d5d1dba377fc7fa14444cf556963747ff9a0a289a3599cf09da03b9e2e wix311-binaries.zip" | sha256sum --check || exit /b 1
  +echo | set /p placeholder="2c1888d5d1dba377fc7fa14444cf556963747ff9a0a289a3599cf09da03b9e2e wix311-binaries.zip" | sha256sum --check || exit /b 1
   unzip -q wix311-binaries.zip
   set WIX=%cd%
   cd ..
  
positive.code: set JDK_NAME=%JDK_BUILD%-jdk%JDK_VERSION%-win_x64
  set JRE_NAME=%JDK_BUILD%-jre%JDK_VERSION%-win_x64
  wget -q https://storage.googleapis.com/jdk-mirror/%JDK_BUILD%/%JDK_NAME%.zip
  echo | set /p dummy="1d947cb3a846d87aca12d4ae94e1b51e1079fdcd9e4faea9684909b8072f8ed4 %JDK_NAME%.zip" | sha256sum --check || exit /b 1
  unzip -q %JDK_NAME%.zip
  set JAVA_HOME=%CD%\%JDK_NAME%
  
  wget -q https://storage.googleapis.com/jdk-mirror/%JDK_BUILD%/%JRE_NAME%.zip
  echo | set /p dummy="339f622f688b129de16876ce8ee252eac0ab7663d81596016abf2efacab01d86 %JRE_NAME%.zip" | sha256sum --check || exit /b 1
  unzip -q %JRE_NAME%.zip
  set JRE_HOME=%CD%\%JRE_NAME%
  
  REM Install Bazel.
  set BAZEL_VERSION=4.2.0
  wget -q https://github.com/bazelbuild/bazel/releases/download/%BAZEL_VERSION%/bazel-%BAZEL_VERSION%-windows-x86_64.zip
  echo | set /p dummy="56c29f850677a7aaf9b59cbd762d0d41d9f9e158bf96c5b6022af123fd52db7f bazel-%BAZEL_VERSION%-windows-x86_64.zip" | sha256sum --check || exit /b 1
  unzip -q bazel-%BAZEL_VERSION%-windows-x86_64.zip
  set PATH=C:\python35;%PATH%
  
  
negative.code: 
  REM Download and install specific compiler version.
  wget -q http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gcc-10.2.0-9-any.pkg.tar.zst
  echo | set /p placeholder="d5e6b88a71693ae0d8b4dcd08234d3490252234a60732bf63007e013a567242a mingw-w64-x86_64-gcc-10.2.0-9-any.pkg.tar.zst" | sha256sum --check || exit /b 1
  wget -q http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gcc-libs-10.2.0-9-any.pkg.tar.zst
  echo | set /p placeholder="316e4bbdb30ea70cf8f835d122b5dffe0c666cff4f86e423cdb06041f2c3c54e mingw-w64-x86_64-gcc-libs-10.2.0-9-any.pkg.tar.zst" | sha256sum --check || exit /b 1
  wget -q http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-binutils-2.37-4-any.pkg.tar.zst
  echo | set /p placeholder="a518d2630c11fe363abd394763d0bb82fdde72386ffb58d87ecc8f46cbe878d6 mingw-w64-x86_64-binutils-2.37-4-any.pkg.tar.zst" | sha256sum --check || exit /b 1
  %BUILD_ROOT%\msys64\usr\bin\bash --login -c "pacman -U --noconfirm /t/src/mingw-w64-x86_64-gcc-10.2.0-9-any.pkg.tar.zst /t/src/mingw-w64-x86_64-gcc-libs-10.2.0-9-any.pkg.tar.zst /t/src/mingw-w64-x86_64-binutils-2.37-4-any.pkg.tar.zst"
  
  REM Configure build process to use the now installed MSYS2.
  