bmakedebugsdl2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/bash
  2. mkdir tmp
  3. cd ..
  4. dir=`pwd`
  5. export CCACHE_DIR="${dir}/build/ccache/bmakedebugsdl2"
  6. export CC="ccache gcc"
  7. export CXX="ccache g++"
  8. export LANG=C
  9. export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \
  10. -D_FORTIFY_SOURCE=2 -D_GLIBCXX_SANITIZE_VECTOR \
  11. -fno-omit-frame-pointer \
  12. -fsanitize=address -fsanitize=undefined \
  13. -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable \
  14. -fsanitize=vla-bound -fsanitize=null -fsanitize=return \
  15. -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment \
  16. -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \
  17. -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \
  18. -fsanitize=enum -fsanitize=vptr \
  19. -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=builtin -fsanitize=pointer-overflow \
  20. -std=gnu++2a \
  21. -fno-var-tracking -Wno-attributes"
  22. source ./tools/ci/flags/gcc10.sh
  23. autoreconf -i
  24. cd build/tmp
  25. ../../configure --prefix=$dir/run \
  26. --datadir=$dir/run/share/games \
  27. --bindir=$dir/run/bin \
  28. --mandir=$dir/run/share/man \
  29. --enable-memdebug=no \
  30. --enable-tcmalloc=no \
  31. --enable-googleprofiler=no \
  32. --enable-checks=yes \
  33. --with-sdl2 \
  34. --enable-werror
  35. cd po
  36. make -j16 update-gmo 2>../../make1.log
  37. cd ..
  38. make -j16 2>../make2.log