@echo off @setlocal pushd %~dp0 set exeName=slime.exe pushd bin taskkill /F /IM %exeName% > NUL 2> NUL echo ---------- Compiling ---------- call ..\timecmd cl ../src/main.cpp /D_DEBUG /Zi /std:c++latest /Fe%exeName% /W3 /wd4003 /nologo /EHsc /link /NODEFAULTLIB:libucrt libucrtd.lib rem call ..\timecmd clang-cl ../src/main.cpp -o %exeName% /O2 /std:c++latest /W3 /Zi /EHsc popd if %errorlevel% == 0 ( echo. echo ---- Running Tests ---- echo. call timecmd bin\slime.exe --run-tests echo. echo ---- Genderating Docs ---- echo. call timecmd bin\slime generate-docs.slime ) else ( echo. echo Fuckin' ell ) popd