]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/run-make: bump up to clang 19
authorMatan Breizman <mbreizma@redhat.com>
Sun, 16 Feb 2025 16:43:50 +0000 (16:43 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 20 Feb 2025 14:27:33 +0000 (14:27 +0000)
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>
src/script/lib-build.sh
src/script/run-make.sh

index 857b3e2760a494d6f526221f9eacd3eaa9b6fd97..ce563d4e62a6a96b16008ba56d63901e010bacf0 100755 (executable)
@@ -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"
index e90e6fb3151963c0840470ff677edab1b12d2726..616a50cdefb9757cd510a8a8acaf61a381b22a0e 100755 (executable)
@@ -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