Skip to content

Commit

Permalink
Hacking in the clang/bazel 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 1e054dc commit cdea234
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ jobs:
- name: Build
# Build your program with clang
working-directory: ${{github.workspace}}
run: bazel build --action_env=CXX=clang++ --action_env=CC=clang ...
# Hacking due to there is a bug in either clang14 or libstdc++13 that the compiler is
# complaining a consteval function is not constant expression.
run: bazel build --action_env=CXX=clang++ --action_env=CC=clang --cxxopt="-Dconsteval=constexpr" ...

- name: Test
# Build and Execute tests
working-directory: ${{github.workspace}}
run: bazel test --action_env=CXX=clang++ --action_env=CC=clang --test_output=errors ...
# Hacking due to there is a bug in either clang14 or libstdc++13 that the compiler is
# complaining a consteval function is not constant expression.
run: bazel test --action_env=CXX=clang++ --action_env=CC=clang --test_output=errors --cxxopt="-Dconsteval=constexpr" ...

0 comments on commit cdea234

Please sign in to comment.