You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
562 B

  1. @echo off
  2. @setlocal
  3. pushd %~dp0\bin
  4. set exeName=slime.exe
  5. taskkill /F /IM %exeName% > NUL 2> NUL
  6. echo ---------- Compiling ----------
  7. call ..\timecmd cl ^
  8. ../src/main.cpp^
  9. /I../3rd/ ^
  10. /D_PROFILING /D_DEBUG /D_DONT_BREAK_ON_ERRORS ^
  11. /Zi /std:c++latest /Fe%exeName% /W3 /wd4003 /nologo /EHsc
  12. rem call ..\timecmd clang-cl ../src/main.cpp -o %exeName% /O2 /std:c++latest /W3 /Zi /EHsc
  13. if %errorlevel% == 0 (
  14. echo.
  15. echo ---- Running Tests ----
  16. echo.
  17. call timecmd slime.exe --run-tests
  18. ) else (
  19. echo.
  20. echo Fuckin' ell
  21. )
  22. popd