Skip to content

Commit

Permalink
Don't impose Werror on users of BoringSSL
Browse files Browse the repository at this point in the history
Change-Id: Ibc52fbe362728134fce3c90ee47a23065a2e31b2
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/74087
Reviewed-by: Adam Langley <[email protected]>
Reviewed-by: David Benjamin <[email protected]>
Commit-Queue: Adam Langley <[email protected]>
  • Loading branch information
mikael-s-persson authored and Boringssl LUCI CQ committed Dec 19, 2024
1 parent 2296728 commit be21ef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ build:linux --cxxopt=-std=c++17
build:macos --cxxopt=-std=c++17
build:windows --cxxopt=/std:c++17

# Our own builds should strictly build without warnings, but we don't add those
# in targets like other flags because we can't assume all users will have clean
# builds too.
build:linux --cxxopt=-Werror
build:macos --cxxopt=-Werror

# Without setting a minimum macOS version, std::optional does not work.
build:macos --cxxopt=-mmacosx-version-min=10.15

Expand Down
1 change: 0 additions & 1 deletion util/util.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
gcc_copts = [
# This list of warnings should match those in the top-level CMakeLists.txt.
"-Wall",
"-Werror",
"-Wformat=2",
"-Wsign-compare",
"-Wmissing-field-initializers",
Expand Down

0 comments on commit be21ef7

Please sign in to comment.