@echo off call "D:\app\VS2019\VC\Auxiliary\Build\vcvars64.bat" echo Swtich to x64 build env cd %~dp0\luajit-2.1.0b3\src call msvcbuild_mt.bat static cd ..\.. mkdir build_lj64 & pushd build_lj64 cmake -DUSING_LUAJIT=ON -G "Visual Studio 16 2019" .. IF %ERRORLEVEL% NEQ 0 cmake -DUSING_LUAJIT=ON -G "Visual Studio 16 2019" .. popd cmake --build build_lj64 --config Release md plugin_luajit\Plugins\x86_64 copy /Y build_lj64\Release\xlua.dll plugin_luajit\Plugins\x86_64\xlua.dll pause