From b4bd12d3d5d63a0ef2fe47bfb66fd497326298b6 Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 26 Aug 2026 11:31:17 +0100 Subject: [PATCH 1/3] ci: use LLVM 23 in *san, fuzz, *cross jobs --- ci/test/00_setup_env_freebsd_cross.sh | 2 +- ci/test/00_setup_env_native_asan.sh | 2 +- ci/test/00_setup_env_native_fuzz.sh | 2 +- ci/test/00_setup_env_native_fuzz_with_msan.sh | 2 +- ci/test/00_setup_env_native_msan.sh | 2 +- ci/test/00_setup_env_native_tidy.sh | 2 +- ci/test/00_setup_env_native_tsan.sh | 2 +- ci/test/00_setup_env_netbsd_cross.sh | 2 +- ci/test/00_setup_env_openbsd_cross.sh | 2 +- ci/test/01_base_install.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ci/test/00_setup_env_freebsd_cross.sh b/ci/test/00_setup_env_freebsd_cross.sh index 9a22cb6f96f..b7261701a7f 100755 --- a/ci/test/00_setup_env_freebsd_cross.sh +++ b/ci/test/00_setup_env_freebsd_cross.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_freebsd_cross export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" -export APT_LLVM_V="22" +export APT_LLVM_V="23" export HOST=x86_64-unknown-freebsd export FREEBSD_VERSION=15.1 export FREEBSD_SDK_BASENAME="freebsd-${HOST}-${FREEBSD_VERSION}" diff --git a/ci/test/00_setup_env_native_asan.sh b/ci/test/00_setup_env_native_asan.sh index 7e28b05e0b0..fca346f1f46 100755 --- a/ci/test/00_setup_env_native_asan.sh +++ b/ci/test/00_setup_env_native_asan.sh @@ -19,7 +19,7 @@ else fi export CONTAINER_NAME=ci_native_asan -export APT_LLVM_V="22" +export APT_LLVM_V="23" export PACKAGES="systemtap-sdt-dev clang-${APT_LLVM_V} llvm-${APT_LLVM_V} libclang-rt-${APT_LLVM_V}-dev mold python3-zmq qt6-base-dev qt6-tools-dev qt6-l10n-tools libboost-dev libzmq3-dev libqrencode-dev libsqlite3-dev ${BPFCC_PACKAGE} libcapnp-dev capnproto python3-pip" export PIP_PACKAGES="--break-system-packages pycapnp" export NO_DEPENDS=1 diff --git a/ci/test/00_setup_env_native_fuzz.sh b/ci/test/00_setup_env_native_fuzz.sh index bb203a72850..9b7e87730bb 100755 --- a/ci/test/00_setup_env_native_fuzz.sh +++ b/ci/test/00_setup_env_native_fuzz.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" export CONTAINER_NAME=ci_native_fuzz -export APT_LLVM_V="22" +export APT_LLVM_V="23" export PACKAGES="clang-${APT_LLVM_V} llvm-${APT_LLVM_V} libclang-rt-${APT_LLVM_V}-dev libboost-dev libsqlite3-dev libcapnp-dev capnproto" export NO_DEPENDS=1 export RUN_UNIT_TESTS=false diff --git a/ci/test/00_setup_env_native_fuzz_with_msan.sh b/ci/test/00_setup_env_native_fuzz_with_msan.sh index 7f6ad82847b..a8cb3bde874 100755 --- a/ci/test/00_setup_env_native_fuzz_with_msan.sh +++ b/ci/test/00_setup_env_native_fuzz_with_msan.sh @@ -7,7 +7,7 @@ export LC_ALL=C.UTF-8 export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" -export APT_LLVM_V="22" +export APT_LLVM_V="23" LIBCXX_DIR="/cxx_build/" export MSAN_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -g -O1 -fno-optimize-sibling-calls" LIBCXX_FLAGS="-nostdinc++ -nostdlib++ -isystem ${LIBCXX_DIR}include/c++/v1 -L${LIBCXX_DIR}lib -Wl,-rpath,${LIBCXX_DIR}lib -lc++ -lc++abi -lpthread -Wno-unused-command-line-argument" diff --git a/ci/test/00_setup_env_native_msan.sh b/ci/test/00_setup_env_native_msan.sh index 1d005abbd60..f767f3851e7 100755 --- a/ci/test/00_setup_env_native_msan.sh +++ b/ci/test/00_setup_env_native_msan.sh @@ -7,7 +7,7 @@ export LC_ALL=C.UTF-8 export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" -export APT_LLVM_V="22" +export APT_LLVM_V="23" LIBCXX_DIR="/cxx_build/" export MSAN_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -g -O1 -fno-optimize-sibling-calls" LIBCXX_FLAGS="-nostdinc++ -nostdlib++ -isystem ${LIBCXX_DIR}include/c++/v1 -L${LIBCXX_DIR}lib -Wl,-rpath,${LIBCXX_DIR}lib -lc++ -lc++abi -lpthread -Wno-unused-command-line-argument" diff --git a/ci/test/00_setup_env_native_tidy.sh b/ci/test/00_setup_env_native_tidy.sh index 845a43705b7..d5a6550c4c0 100755 --- a/ci/test/00_setup_env_native_tidy.sh +++ b/ci/test/00_setup_env_native_tidy.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" export CONTAINER_NAME=ci_native_tidy -export TIDY_LLVM_V="22" +export TIDY_LLVM_V="23" export APT_LLVM_V="${TIDY_LLVM_V}" export PACKAGES="clang-${TIDY_LLVM_V} libclang-${TIDY_LLVM_V}-dev llvm-${TIDY_LLVM_V}-dev libomp-${TIDY_LLVM_V}-dev clang-tidy-${TIDY_LLVM_V} jq libboost-dev libzmq3-dev systemtap-sdt-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools libqrencode-dev libsqlite3-dev libcapnp-dev capnproto" export NO_DEPENDS=1 diff --git a/ci/test/00_setup_env_native_tsan.sh b/ci/test/00_setup_env_native_tsan.sh index 4f900699f10..32de85c8a72 100755 --- a/ci/test/00_setup_env_native_tsan.sh +++ b/ci/test/00_setup_env_native_tsan.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_native_tsan export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" -export APT_LLVM_V="22" +export APT_LLVM_V="23" LIBCXX_DIR="/cxx_build/" LIBCXX_FLAGS="-fsanitize=thread -nostdinc++ -nostdlib++ -isystem ${LIBCXX_DIR}include/c++/v1 -L${LIBCXX_DIR}lib -Wl,-rpath,${LIBCXX_DIR}lib -lc++ -lc++abi -lpthread -Wno-unused-command-line-argument" export PACKAGES="clang-${APT_LLVM_V} llvm-${APT_LLVM_V} llvm-${APT_LLVM_V}-dev libclang-${APT_LLVM_V}-dev libclang-rt-${APT_LLVM_V}-dev python3-zmq python3-pip" diff --git a/ci/test/00_setup_env_netbsd_cross.sh b/ci/test/00_setup_env_netbsd_cross.sh index e817473f7a7..1a29725369c 100755 --- a/ci/test/00_setup_env_netbsd_cross.sh +++ b/ci/test/00_setup_env_netbsd_cross.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_netbsd_cross export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" -export APT_LLVM_V="22" +export APT_LLVM_V="23" export HOST=x86_64-unknown-netbsd export NETBSD_VERSION=11.0 export NETBSD_SDK_BASENAME="netbsd-${HOST}-${NETBSD_VERSION}" diff --git a/ci/test/00_setup_env_openbsd_cross.sh b/ci/test/00_setup_env_openbsd_cross.sh index f9d75e47d70..d8fffe30467 100755 --- a/ci/test/00_setup_env_openbsd_cross.sh +++ b/ci/test/00_setup_env_openbsd_cross.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_openbsd_cross export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04" -export APT_LLVM_V="22" +export APT_LLVM_V="23" export HOST=x86_64-unknown-openbsd export OPENBSD_VERSION=7.9 export OPENBSD_SDK_BASENAME="openbsd-${HOST}-${OPENBSD_VERSION}" diff --git a/ci/test/01_base_install.sh b/ci/test/01_base_install.sh index 057916e282c..62dec8287c6 100755 --- a/ci/test/01_base_install.sh +++ b/ci/test/01_base_install.sh @@ -67,7 +67,7 @@ if [ -n "$PIP_PACKAGES" ]; then fi if [[ -n "${USE_INSTRUMENTED_LIBCPP}" ]]; then - ${CI_RETRY_EXE} git clone --depth=1 https://github.com/llvm/llvm-project -b "llvmorg-22.1.7" /llvm-project + ${CI_RETRY_EXE} git clone --depth=1 https://github.com/llvm/llvm-project -b "llvmorg-23.1.0" /llvm-project # LLVM is configured with LIBCXXABI_USE_LLVM_UNWINDER=OFF, # because libunwind doesn't handle exceptions under MSAN. From feb3bd46e4c8ca53d1d9e59cd032588a544b1393 Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 27 Aug 2026 16:45:48 +0100 Subject: [PATCH 2/3] clang-tidy: remove some performance-* options --- src/.clang-tidy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/.clang-tidy b/src/.clang-tidy index 4e0af3f379b..20b9178d2c8 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -23,10 +23,14 @@ modernize-use-starts-ends-with, performance-*, -performance-avoid-endl, -performance-enum-size, +-performance-faster-string-find, -performance-inefficient-string-concatenation, -performance-no-int-to-ptr, -performance-noexcept-move-constructor, +-performance-prefer-single-char-overloads, +-performance-string-view-conversions, -performance-unnecessary-value-param, +-performance-use-std-move, readability-avoid-const-params-in-decls, readability-const-return-type, readability-container-contains, From 5ba9af6b6922c48567c0db5c7c03febb643b29d1 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 1 Sep 2026 17:39:51 +0100 Subject: [PATCH 3/3] ci: pass LIBCXX_INCLUDE_TESTS=OFF to LLVM build --- ci/test/01_base_install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/test/01_base_install.sh b/ci/test/01_base_install.sh index 62dec8287c6..7b63a4d09ae 100755 --- a/ci/test/01_base_install.sh +++ b/ci/test/01_base_install.sh @@ -83,6 +83,7 @@ if [[ -n "${USE_INSTRUMENTED_LIBCPP}" ]]; then -DLIBCXXABI_USE_LLVM_UNWINDER=OFF \ -DLIBCXX_ABI_DEFINES="_LIBCPP_ABI_BOUNDED_ITERATORS;_LIBCPP_ABI_BOUNDED_ITERATORS_IN_STD_ARRAY;_LIBCPP_ABI_BOUNDED_ITERATORS_IN_STRING;_LIBCPP_ABI_BOUNDED_ITERATORS_IN_VECTOR;_LIBCPP_ABI_BOUNDED_UNIQUE_PTR" \ -DLIBCXX_HARDENING_MODE=debug \ + -DLIBCXX_INCLUDE_TESTS=OFF \ -S /llvm-project/runtimes ninja -C /cxx_build/ "$MAKEJOBS"