Skip to content

Commit

Permalink
Update .bazelrc
Browse files Browse the repository at this point in the history
Fix -Wno-missing-braces in clang, clang is too sensitive.
  • Loading branch information
poor-circle authored Mar 1, 2024
1 parent d8e99f4 commit 88b5ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ build --action_env=PYENV_VERSION
build --action_env=PYENV_SHELL
# This is needed for some core tests to run correctly
build:windows --enable_runfiles
build:linux --per_file_copt="-\\.(asm|S)$@-Werror"
build:macos --per_file_copt="-\\.(asm|S)$@-Werror"
build:clang-cl --per_file_copt="-\\.(asm|S)$@-Werror"
build:linux --per_file_copt="-\\.(asm|S)$@-Werror -Wno-missing-braces"
build:macos --per_file_copt="-\\.(asm|S)$@-Werror -Wno-missing-braces"
build:clang-cl --per_file_copt="-\\.(asm|S)$@-Werror -Wno-missing-braces"
build:msvc-cl --per_file_copt="-\\.(asm|S)$@-WX"
# Ignore warnings for protobuf generated files and external projects.
build --per_file_copt="\\.pb\\.cc$@-w"
Expand Down

0 comments on commit 88b5ab5

Please sign in to comment.