[PATCH] D156651: [llvm][Bazel] Split lit target into lit_lib and lit
Adrian Kuegel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 00:38:39 PDT 2023
akuegel created this revision.
Herald added a project: All.
akuegel requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Only the lit main file will be in the py_binary.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D156651
Files:
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -4770,10 +4770,17 @@
],
)
+py_library(
+ name = "lit_lib",
+ testonly = True,
+ srcs = glob(["utils/lit/lit/**/*.py"]),
+)
+
py_binary(
name = "lit",
testonly = True,
- srcs = ["utils/lit/lit.py"] + glob(["utils/lit/lit/**/*.py"]),
+ srcs = ["utils/lit/lit.py"],
+ deps = [":lit_lib"],
)
cc_library(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156651.545530.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/596d9833/attachment.bin>
More information about the llvm-commits
mailing list