From: Matan Breizman Date: Sun, 16 Feb 2025 16:43:50 +0000 (+0000) Subject: script/run-make: bump up to clang 19 X-Git-Tag: v20.0.0~60^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e5a51b6b8aefa7647ca753e76d35851a6c4687a;p=ceph.git script/run-make: bump up to clang 19 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 --- diff --git a/src/script/lib-build.sh b/src/script/lib-build.sh index 857b3e2760a4..ce563d4e62a6 100755 --- a/src/script/lib-build.sh +++ b/src/script/lib-build.sh @@ -72,7 +72,7 @@ function discover_compiler() { 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" diff --git a/src/script/run-make.sh b/src/script/run-make.sh index e90e6fb31519..616a50cdefb9 100755 --- a/src/script/run-make.sh +++ b/src/script/run-make.sh @@ -54,11 +54,11 @@ function prepare() { 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