Skip to content

Commit dbf15a2

Browse files
hzellerjunyer
authored andcommitted
Use try-import to load an optional user-specific user.bazelrc
This is very useful for setting local configurations such as extra warnings, --config, etc. Name `user.bazelrc` like bazel best practices describe it: https://bazel.build/configure/best-practices#bazelrc-file Change-Id: If531d682668b4cb2421cfba79848102964634189 Reviewed-on: https://code-review.googlesource.com/c/re2/+/62770 Reviewed-by: Paul Wankadia <[email protected]> Reviewed-by: Alex Chernyakhovsky <[email protected]>
1 parent 8695a63 commit dbf15a2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ build:windows --cxxopt=/std:c++14
1919

2020
# Print test logs for failed tests.
2121
test --test_output=errors
22+
23+
# https://bazel.build/configure/best-practices#bazelrc-file
24+
try-import %workspace%/user.bazelrc

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
core
44
obj/
55
benchlog.*
6+
user.bazelrc

0 commit comments

Comments
 (0)