From 20178dcadbdcadc34e2fa868d3160ef1af1ca068 Mon Sep 17 00:00:00 2001 From: MisledWater79 <59891258+MisledWater79@users.noreply.github.com> Date: Sun, 28 Jun 2026 17:28:05 -0400 Subject: [PATCH] Configure windows CMake build to use clang-cl Updated the CMake build environment to use clang-cl as the compiler and adjusted the priority for update-alternatives. --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e43164e..cd7ed68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -128,6 +128,9 @@ jobs: uses: lukka/get-cmake@latest - name: Build with CMake + env: + CC: clang-cl + CXX: clang-cl run: | cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake --build build @@ -160,8 +163,8 @@ jobs: sudo chmod +x llvm.sh sudo ./llvm.sh ${LLVM_VERSION} sudo apt-get install -y -q libc++-${LLVM_VERSION}-dev libc++abi-${LLVM_VERSION}-dev - sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${LLVM_VERSION} 100 - sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${LLVM_VERSION} 100 + sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${LLVM_VERSION} 200 + sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${LLVM_VERSION} 200 - name: Set up CMake and Ninja uses: lukka/get-cmake@latest