Skip to content

Commit 20178dc

Browse files
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.
1 parent 0090d3c commit 20178dc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ jobs:
128128
uses: lukka/get-cmake@latest
129129

130130
- name: Build with CMake
131+
env:
132+
CC: clang-cl
133+
CXX: clang-cl
131134
run: |
132135
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
133136
cmake --build build
@@ -160,8 +163,8 @@ jobs:
160163
sudo chmod +x llvm.sh
161164
sudo ./llvm.sh ${LLVM_VERSION}
162165
sudo apt-get install -y -q libc++-${LLVM_VERSION}-dev libc++abi-${LLVM_VERSION}-dev
163-
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${LLVM_VERSION} 100
164-
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${LLVM_VERSION} 100
166+
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${LLVM_VERSION} 200
167+
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${LLVM_VERSION} 200
165168
166169
- name: Set up CMake and Ninja
167170
uses: lukka/get-cmake@latest

0 commit comments

Comments
 (0)