Skip to content

Commit

Permalink
Hacking in the clang/cmake CI to downgrade consteval to constexpr
Browse files Browse the repository at this point in the history
Currently, there is a problem in either clang14 or libstdc++13 in the
CI environment that complaining that there is a function marked as
consteval but not constant expression.

We add a `-Dconsteval=constexpr` in the CI hackly to make that CI green.
We need to remove it when the environment changes someday.
  • Loading branch information
ChuanqiXu9 committed Nov 23, 2023
1 parent f5ccc27 commit 1e054dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: CXX=clang++ CC=clang cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.mode}}
# Hacking due to there is a bug in either clang14 or libstdc++
run: CXX=clang++ CC=clang cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.mode}} -DCMAKE_CXX_FLAGS="-Dconsteval=constexpr"

- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit 1e054dc

Please sign in to comment.