Skip to content

Commit

Permalink
Switch to C++20
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 573677424
  • Loading branch information
Kostik Shtoyk authored and copybara-github committed Oct 16, 2023
1 parent 42fa153 commit 142ebd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
build --client_env=CC=clang

build --cxxopt=-std=c++17 --cxxopt=-fno-stack-protector --copt=-Wno-narrowing --copt=-fno-exceptions --cxxopt=-Wno-unused-private-field --cxxopt=-Wno-defaulted-function-deleted
build --cxxopt=-std=c++20 --cxxopt=-fno-stack-protector --copt=-Wno-narrowing --copt=-fno-exceptions --cxxopt=-Wno-unused-private-field --cxxopt=-Wno-defaulted-function-deleted

# SiliFuzz build is "selfhosted" (i.e. uses its own stack for some of the build tools).
# Use the same configuration as the target above
build --host_cxxopt=-std=c++17 --host_cxxopt=-fno-stack-protector --host_copt=-Wno-narrowing --host_copt=-fno-exceptions --host_cxxopt=-Wno-unused-private-field --host_cxxopt=-Wno-defaulted-function-deleted
build --host_cxxopt=-std=c++20 --host_cxxopt=-fno-stack-protector --host_copt=-Wno-narrowing --host_copt=-fno-exceptions --host_cxxopt=-Wno-unused-private-field --host_cxxopt=-Wno-defaulted-function-deleted

# Remove security hardening as it clashes with nolibc
build --copt -U_FORTIFY_SOURCE
Expand Down

0 comments on commit 142ebd7

Please sign in to comment.