From 0e5a51b6b8aefa7647ca753e76d35851a6c4687a Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Sun, 16 Feb 2025 16:43:50 +0000 Subject: [PATCH] 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 --- src/script/lib-build.sh | 2 +- src/script/run-make.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/script/lib-build.sh b/src/script/lib-build.sh index 857b3e2760a..ce563d4e62a 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 e90e6fb3151..616a50cdefb 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 -- 2.39.5