Skip to content

Commit

Permalink
Update to clang-14 and c++20. (#99)
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

shuoyang2016 authored Aug 29, 2024
1 parent 3619e7d commit 8b7e71c
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@
# https://github.com/bazelbuild/rules_fuzzing/blob/f6062a88d83463e2900e47bc218547ba046dad44/.bazelrc

# Force the use of Clang for all builds.
build --action_env=CC=clang-10
build --action_env=CXX=clang++-10
build --action_env=CC=clang-14
build --action_env=CXX=clang++-14

build --cxxopt=-std=c++14
build --host_cxxopt=-std=c++14
build --cxxopt=-std=c++20
build --host_cxxopt=-std=c++20

# The ASAN configuration suitable for C++ unit tests.
build:asan --copt=-fsanitize=address
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
4.0.0
7 changes: 5 additions & 2 deletions script/ci.sh
Original file line number Diff line number Diff line change
@@ -16,5 +16,8 @@
#
################################################################################

bazel build //...
bazel test //... --test_output=errors
# TODO: Remove these two lines after getting rid of python2 dependencies.
apt-get upgrade
apt-get -y install python
bazelisk build //...
bazelisk test //... --test_output=errors

0 comments on commit 8b7e71c

Please sign in to comment.