Supporting new stable compilers releases early on
should make it easier in the future by preventing introduction of
deperacted code.
As this PR already upgrades to 16 with the relevant fixes, we can
use this opportunity to upgrade to the last stable release available.
Note: Most distinct change here is that -Wvla-extension enabled
by default and will result in lots of warnings.
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
local cxx_compiler=g++
local c_compiler=gcc
# ubuntu/debian ci builds prefer clang
- for i in {16..12}; do
+ for i in {19..12}; do
if type -t "clang-$i" > /dev/null; then
cxx_compiler="clang++-$i"
c_compiler="clang-$i"
which_pkg="debianutils"
if in_jenkins; then
- if ! type clang-16 > /dev/null 2>&1 ; then
- ci_debug "Getting clang-16"
+ if ! type clang-19 > /dev/null 2>&1 ; then
+ ci_debug "Getting clang-19"
wget https://download.ceph.com/qa/llvm.sh
chmod +x llvm.sh
- $DRY_RUN sudo ./llvm.sh 16
+ $DRY_RUN sudo ./llvm.sh 19
rm llvm.sh
fi
fi