checker-buildbot.bat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. rem This is checker-buildbot.sh, simplified into a Windows .bat file
  2. rem We assume a lot of non-standard Windows stuff is in your PATH:
  3. rem cmake, ninja, clang, perl...
  4. erase /q /f /s %1 checker-buildbot analysis
  5. mkdir checker-buildbot
  6. cd checker-buildbot
  7. # We turn off deprecated declarations, because we don't care about these warnings during static analysis.
  8. # The -Wno-liblto is new since our checker-279 upgrade, I think; checker otherwise warns "libLTO.dylib relative to clang installed dir not found"
  9. scan-build -o analysis cmake -G Ninja -Wno-dev -DSDL_STATIC=OFF -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" -DCMAKE_SHARED_LINKER_FLAGS="-Wno-liblto" ..
  10. erase /q /f /s analysis
  11. scan-build -o analysis ninja
  12. for /F %%i in ('dir /b /a "analysis\*"') do (
  13. goto packageit
  14. )
  15. mkdir analysis\zarro
  16. echo '<html><head><title>Zarro boogs</title></head><body>Static analysis: no issues to report.</body></html>' >analysis\zarro\index.html
  17. packageit:
  18. move analysis\* ..\analysis
  19. rmdir analysis # Make sure this is empty.
  20. cd ..
  21. move analysis %1
  22. erase /q /f /s checker-buildbot
  23. echo "Done"
  24. rem end of checker-buildbot.bat ...