Skip to content

Commit

Permalink
Silence C++ compilation warnings from external dependencies in the Ba…
Browse files Browse the repository at this point in the history
…zel config.

PiperOrigin-RevId: 646978405
Change-Id: Ifc3182b7575e7a371239e26307918c1f29c4099d
  • Loading branch information
chuckx authored and copybara-github committed Jun 26, 2024
1 parent f9933b5 commit d15ddec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
build --cxxopt='-std=c++14' --host_cxxopt='-std=c++14'
build --java_language_version=8
build --java_runtime_version=local_jdk

# Silence all C/C++ warnings in external code.
#
# Note that this will not silence warnings from external headers included
# in project code.
build --per_file_copt=external/.*@-w
build --host_per_file_copt=external/.*@-w
7 changes: 7 additions & 0 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
build --cxxopt='-std=c++14' --host_cxxopt='-std=c++14'
build --java_language_version=8
build --java_runtime_version=local_jdk

# Silence all C/C++ warnings in external code.
#
# Note that this will not silence warnings from external headers included
# in project code.
build --per_file_copt=external/.*@-w
build --host_per_file_copt=external/.*@-w

0 comments on commit d15ddec

Please sign in to comment.