[llvm] [bazel] Pass --build_runfile_links=false (PR #113221)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 14:01:20 PDT 2024
https://github.com/keith created https://github.com/llvm/llvm-project/pull/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.
>From a43c3203a4e4de986ef985d7d350ec83837f2e8e Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Mon, 21 Oct 2024 20:59:18 +0000
Subject: [PATCH] [bazel] Pass --build_runfile_links=false
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.
---
utils/bazel/.bazelrc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/utils/bazel/.bazelrc b/utils/bazel/.bazelrc
index d5da8fc6a2fb63..2628352f5162b6 100644
--- a/utils/bazel/.bazelrc
+++ b/utils/bazel/.bazelrc
@@ -48,6 +48,13 @@ common --incompatible_disallow_empty_glob
# TODO: Remove once we move to bazel 7.x
build --experimental_cc_shared_library
+# Disabling runfiles links drastically increases performance in slow disk IO
+# situations Do not build runfile trees by default. If an execution strategy
+# relies on runfile symlink tree, the tree is created on-demand. See:
+# https://github.com/bazelbuild/bazel/issues/6627 and
+# https://github.com/bazelbuild/bazel/commit/03246077f948f2790a83520e7dccc2625650e6df
+build --build_runfile_links=false
+
###############################################################################
# Options to select different strategies for linking potential dependent
# libraries. The default leaves it disabled.
More information about the llvm-commits
mailing list