gcc8_lto.sh 595 B

1234567891011121314151617181920212223242526272829303132
  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 -ggdb3 -pipe -ffast-math -O9 -flto -fwhole-program \
  13. -fno-omit-frame-pointer -funswitch-loops -D_FORTIFY_SOURCE=2 -std=gnu++2a \
  14. -Wno-attributes -fno-omit-frame-pointer"
  15. source ./tools/ci/flags/gcc8.sh
  16. export CXXFLAGS="$CXXFLAGS $POST_CXXFLAGS"
  17. do_init
  18. run_configure --enable-werror $*
  19. run_make
  20. source ./tools/ci/scripts/exit.sh
  21. exit 0