Skip to content

Commit 44e7723

Browse files
authored
chore: enable disk cache for faster local builds (#3424)
The disk cache can greatly speed up local builds, in particular, if docs are built which requires building protobuf.
1 parent 728cce7 commit 44e7723

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ build --enable_runfiles
3030
# Make Bazel 7 use bzlmod by default
3131
common --enable_bzlmod
3232

33+
# Local disk cache greatly speeds up builds if the regular cache is lost
34+
common --disk_cache=~/.cache/bazel/bazel-disk-cache
35+
3336
# Additional config to use for readthedocs builds.
3437
# See .readthedocs.yml for additional flags that can only be determined from
3538
# the runtime environment.

0 commit comments

Comments
 (0)