CI/FreeBSD: switch TravisCI to Clang 11

This commit is contained in:
Jan Beich 2020-11-06 14:57:33 +00:00 committed by Ani
parent acb17b0298
commit e2303f3378
2 changed files with 11 additions and 15 deletions

View file

@ -5,15 +5,13 @@
# shellcheck disable=SC2046
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
# XXX Drop after Travis upgrades FreeBSD to 12.2 (see also .ci/install-freebsd.sh)
case $(${CXX:-c++} --version) in
*version\ 8.0.*)
fetch https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/libcxx-10.0.0.src.tar.xz
tar xf libcxx-10.0.0.src.tar.xz
export CC=clang10 CXX=clang++10
export CXXFLAGS="$CXXFLAGS -nostdinc++ -isystem $PWD/libcxx-10.0.0.src/include"
;;
esac
# Prefer newer Clang on TravisCI (see also .ci/install-freebsd.sh)
if [ -n "$TRAVIS" ]; then
fetch https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/libcxx-11.0.0.src.tar.xz
tar xf libcxx-11.0.0.src.tar.xz
export CC=clang11 CXX=clang++11
export CXXFLAGS="$CXXFLAGS -nostdinc++ -isystem $PWD/libcxx-11.0.0.src/include"
fi
CONFIGURE_ARGS="
-DWITH_LLVM=OFF