Skip to content

Commit 403d41d

Browse files
hzellercopybara-github
authored andcommitted
Provide a way for the user to provide additional bazel configuration.
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
1 parent 6360fcc commit 403d41d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ build:asan --linkopt -fsanitize=address
4242
# bazel run @com_google_fuzztest//bazel:setup_configs > fuzztest.bazelrc
4343
#
4444
try-import %workspace%/fuzztest.bazelrc
45+
46+
# https://bazel.build/configure/best-practices#bazelrc-file
47+
try-import %workspace%/user.bazelrc

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
bazel-*
22
.*.sw[a-z]
33
__pycache__
4+
*~
5+
compile_commands.json
6+
xls_clang-tidy.out
7+
user.bazelrc

0 commit comments

Comments
 (0)