Skip to content

Commit 8856a71

Browse files
committed
Switch Windows build configuration from GCC to MSVC and update CMake to use clang-cl
Updated Windows build environment to use MSVC with ccache and clang-cl as the compiler. Adjusted CMake settings and environment variables to reflect the new toolchain. Simplified build configuration by removing GCC-specific setup.
1 parent e7220ec commit 8856a71

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -851,30 +851,29 @@ jobs:
851851
- name: Setup ccache
852852
uses: Chocobo1/setup-ccache-action@v1
853853
with:
854-
windows_compile_environment: gcc
854+
windows_compile_environment: msvc
855855

856856
- name: Setup ninja
857857
uses: seanmiddleditch/gha-setup-ninja@v6
858858

859859
- name: CMake configure
860860
run: >
861861
cmake -S . -B build -G Ninja
862-
-D CMAKE_C_COMPILER=clang
863-
-D CMAKE_CXX_COMPILER=clang++
862+
-D CMAKE_C_COMPILER=clang-cl
863+
-D CMAKE_CXX_COMPILER=clang-cl
864864
-D CMAKE_C_COMPILER_LAUNCHER=ccache
865865
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache
866866
-D CMAKE_BUILD_TYPE=Release
867867
-D CMAKE_INSTALL_PREFIX=install
868-
-D CMAKE_PREFIX_PATH="${{ env.MPICH_ROOT }}"
869868
env:
870-
CC: clang
871-
CXX: clang++
869+
CC: clang-cl
870+
CXX: clang-cl
872871

873872
- name: Build project
874873
run: cmake --build build --config Release --parallel
875874
env:
876-
CC: clang
877-
CXX: clang++
875+
CC: clang-cl
876+
CXX: clang-cl
878877

879878
- name: Install project
880879
run: cmake --install build

0 commit comments

Comments
 (0)