gcc8_sdl2_tests_gcov.sh 663 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env bash
  2. export CC=gcc-8
  3. export CXX=g++-8
  4. if [ "$NEWCC" != "" ]; then
  5. export CC="$NEWCC"
  6. fi
  7. if [ "$NEWCXX" != "" ]; then
  8. export CXX="$NEWCXX"
  9. fi
  10. export LOGFILE=gcc8.log
  11. source ./tools/ci/scripts/init.sh
  12. export CXXFLAGS="$CXXFLAGS -pedantic -ggdb3 -O2 -pipe -Wstrict-aliasing=2 \
  13. -Wstrict-overflow=1 -Wformat=1 -D_FORTIFY_SOURCE=2 \
  14. -std=gnu++2a -Wformat=1 \
  15. -Wno-attributes"
  16. source ./tools/ci/flags/gcc8.sh
  17. export CXXFLAGS="$CXXFLAGS $POST_CXXFLAGS"
  18. do_init
  19. run_configure --enable-unittests=yes --with-sdl2 --with-gcov $*
  20. export SDL_VIDEODRIVER=dummy
  21. run_make_check
  22. run_gcov gcov-8 gcc-8_SDL2
  23. source ./tools/ci/scripts/exit.sh
  24. exit 0