Skip to content

Commit 28a2f57

Browse files
authored
[bazel] Pass --build_runfile_links=false (#113221)
This improves performance of doing a `bazel test @llvm-project//...` a lot because previously every lit test would have some symlink tree configured for it.
1 parent 34d4f66 commit 28a2f57

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/bazel/.bazelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ common --incompatible_disallow_empty_glob
4848
# TODO: Remove once we move to bazel 7.x
4949
build --experimental_cc_shared_library
5050

51+
# Disabling runfiles links drastically increases performance in slow disk IO
52+
# situations Do not build runfile trees by default. If an execution strategy
53+
# relies on runfile symlink tree, the tree is created on-demand. See:
54+
# https://github.com/bazelbuild/bazel/issues/6627 and
55+
# https://github.com/bazelbuild/bazel/commit/03246077f948f2790a83520e7dccc2625650e6df
56+
build --build_runfile_links=false
57+
5158
###############################################################################
5259
# Options to select different strategies for linking potential dependent
5360
# libraries. The default leaves it disabled.

0 commit comments

Comments
 (0)