@echo off set ARG1=%~1 set ARG2=%~2 pushd "%~dp0%" call setup_msys2.cmd "%ARG1%" "%ARG2%" if exist "cleanup.cmd" ( call cleanup.cmd "x86_64" "%ARG1%" "%ARG2%" 1 0 del cleanup.* ) call mingw64 -no-start ./make_common.sh "x86_64" "%ARG1%" "%ARG2%" 1 0 || exit 1 popd