clang38.sh 922 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env bash
  2. export CC=clang-3.8
  3. export CXX=clang++-3.8
  4. if [ "$NEWCC" != "" ]; then
  5. export CC="$NEWCC"
  6. fi
  7. if [ "$NEWCXX" != "" ]; then
  8. export CXX="$NEWCXX"
  9. fi
  10. export LOGFILE=clang38.log
  11. source ./tools/ci/scripts/init.sh
  12. export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign-conversion \
  13. -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables \
  14. -Wno-overloaded-virtual -Wno-covered-switch-default -Wno-float-equal -Wno-conversion \
  15. -Wno-shorten-64-to-32 -Wno-missing-variable-declarations \
  16. -Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
  17. -Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
  18. -Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
  19. -Wpointer-bool-conversion -fno-omit-frame-pointer -ggdb3 $POST_CXXFLAGS"
  20. do_init
  21. run_configure --enable-werror $*
  22. run_make
  23. source ./tools/ci/scripts/exit.sh
  24. exit 0