Files
slime/build.bat
T
2019-10-17 12:34:33 +02:00

24 lines
565 B
Batchfile

@echo off
@setlocal
pushd %~dp0\bin
set exeName=slime.exe
taskkill /F /IM %exeName% > NUL 2> NUL
echo ---------- Compiling ----------
call ..\timecmd cl ../src/main.cpp /D_PROFILING /D_DEBUG /D_DONT_BREAK_ON_ERRORS /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
if %errorlevel% == 0 (
echo.
echo ---- Running Tests ----
echo.
call timecmd slime.exe --run-tests
) else (
echo.
echo Fuckin' ell
)
popd