@echo off
setlocal
cd /d "%~dp0"

echo ============================================================
echo  RDF Genes v1.0.4p performance compiler
echo ============================================================
echo.

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0Compile.ps1"
set "EXITCODE=%ERRORLEVEL%"

echo.
if not "%EXITCODE%"=="0" (
  echo Compilation FAILED. See Compile.log in this folder.
) else (
  echo Compilation finished successfully.
)
echo.
echo Press any key to close this window.
pause >nul
exit /b %EXITCODE%
