Skip to content

Commit

Permalink
Provide a way for the user to provide additional bazel configuration.
Browse files Browse the repository at this point in the history
This is useful to provide additional options aiding in
local development (e.g. warning options), configuration
for local development (e.g. coverage), or providing additional
options needed, such as linkopts.

Described in the best-practice bazel documentation:
https://bazel.build/configure/best-practices#bazelrc-file

Update .gitignore to mention that file, and update it to also
contain other ephemeral artifacts, like the compilation db,
tidy-run output and backup-files.

PiperOrigin-RevId: 616969764
  • Loading branch information
hzeller authored and copybara-github committed Mar 18, 2024
1 parent 6360fcc commit 403d41d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ build:asan --linkopt -fsanitize=address
# bazel run @com_google_fuzztest//bazel:setup_configs > fuzztest.bazelrc
#
try-import %workspace%/fuzztest.bazelrc

# https://bazel.build/configure/best-practices#bazelrc-file
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
bazel-*
.*.sw[a-z]
__pycache__
*~
compile_commands.json
xls_clang-tidy.out
user.bazelrc

0 comments on commit 403d41d

Please sign in to comment.