[llvm] [bazel] Fix lit tests with bazel 8.x (PR #119462)

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 14:09:01 PST 2024


https://github.com/keith created https://github.com/llvm/llvm-project/pull/119462

https://github.com/llvm/llvm-project/issues/83066


>From e4078fb1606e6eb46e4820fb0baaedad7858ed2f Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Tue, 10 Dec 2024 22:07:22 +0000
Subject: [PATCH] [bazel] Fix lit tests with bazel 8.x

https://github.com/llvm/llvm-project/issues/83066
---
 utils/bazel/.bazelrc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/bazel/.bazelrc b/utils/bazel/.bazelrc
index 3a49d4e0898c0c..a52e21e87ee0ff 100644
--- a/utils/bazel/.bazelrc
+++ b/utils/bazel/.bazelrc
@@ -11,6 +11,9 @@
 # https://github.com/llvm/llvm-project/issues/55924
 common --enable_bzlmod=false --enable_workspace
 
+# TODO: Remove lit test reliance on this
+common --legacy_external_runfiles
+
 # Prevent invalid caching if input files are modified during a build.
 build --experimental_guard_against_concurrent_changes
 



More information about the llvm-commits mailing list