Skip to content

Commit 6fe71ed

Browse files
committed
[bazel] Use compact repo mapping manifest
This is newly available in Bazel 8.4.0+ and the latest rules_cc.
1 parent 56af39c commit 6fe71ed

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ import %workspace%/build/rust_lint.bazelrc
3636
# Prevents bazel cache invalidation when switching terminals
3737
build --incompatible_strict_action_env
3838

39+
# Use compat repo mapping to avoid O(n^2) repo mapping size, speeding up bazel repo mapping phase
40+
# and conserving space
41+
build --incompatible_compact_repo_mapping_manifest
42+
3943
# Our dependencies (ICU, zlib, etc.) produce a lot of these warnings, so we disable them.
4044
build --per_file_copt='external@-Wno-error'
4145
build --per_file_copt='external@-Wno-suggest-override'

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.3.1
1+
8.4.1

MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ bazel_dep(name = "platforms", version = "1.0.0")
2323
# apple_support is more tailored to macOS and allows us to cross-compile easily. Note that this
2424
# needs to be pulled in before rules_cc for this toolchain to actually be used.
2525
bazel_dep(name = "apple_support", version = "1.23.1")
26-
bazel_dep(name = "rules_cc", version = "0.2.3")
26+
bazel_dep(name = "rules_cc", version = "0.2.8")
27+
2728
bazel_dep(name = "zlib", version = "1.3.1.bcr.6")
2829
git_override(
2930
module_name = "zlib",

0 commit comments

Comments
 (0)