From 1e95a5944b5e5201d6fffa37be3aa1e1ea79ff4d Mon Sep 17 00:00:00 2001 From: InfinityWei <31464143+InfinityWei@users.noreply.github.com> Date: Sun, 22 Jun 2025 15:01:57 +0800 Subject: [PATCH] Upgrade clang version from clang-9 to clang-10 in Linux workflow (#2416) Fixes https://github.com/clangd/clangd/issues/2415 --- .github/workflows/autobuild.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index 8e62973..8241006 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -179,7 +179,7 @@ jobs: container: ubuntu:20.04 preinstall: >- apt-get update && - apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-9 + apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-10 software-properties-common p7zip-full curl && add-apt-repository ppa:git-core/ppa && wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && @@ -188,8 +188,8 @@ jobs: apt-get install -y git cmake python3.8 python3.8-dev cflags: -O3 -gline-tables-only -DNDEBUG -include $GITHUB_WORKSPACE/.github/workflows/lib_compat.h cmake: >- - "-DCMAKE_C_COMPILER=clang-9" - "-DCMAKE_CXX_COMPILER=clang++-9" + "-DCMAKE_C_COMPILER=clang-10" + "-DCMAKE_CXX_COMPILER=clang++-10" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE=-static-libgcc -Wl,--compress-debug-sections=zlib" "-DLLVM_STATIC_LINK_CXX_STDLIB=ON" "-DLLVM_ENABLE_ZLIB=FORCE_ON"