]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-make-check.sh: use clang-17 if available 49405/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 13 Dec 2022 07:54:04 +0000 (15:54 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 23 Sep 2023 07:07:37 +0000 (15:07 +0800)
now that clang-17 has been released, let's use it if available.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/script/lib-build.sh

index 6c4455344379d373774ddbda1400dd16fb9eb0a2..950c1ab7387c7c164da5ff421b9fcfc507390eb7 100644 (file)
@@ -64,7 +64,7 @@ function discover_compiler() {
     local cxx_compiler=g++
     local c_compiler=gcc
     # ubuntu/debian ci builds prefer clang
-    for i in {14..10}; do
+    for i in {17..10}; do
         if type -t "clang-$i" > /dev/null; then
             cxx_compiler="clang++-$i"
             c_compiler="clang-$i"