From 0f2b57b5f53232d4c5e8d7f8306785613f56fcb2 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 4 Apr 2023 17:30:31 +0000 Subject: [PATCH] Bazel fix - try splitting out llvm-tblgen into a library to support .def files --- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index 06eeff8..1c7dfd9 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -599,8 +599,15 @@ cc_library( cc_binary( name = "llvm-tblgen", + deps = [":UtilsTableGen"] + stamp = 0, +) + +cc_library( + name = "UtilsTablgen", srcs = glob([ "utils/TableGen/*.cpp", + "utils/TableGen/*.def", "utils/TableGen/*.inc", "utils/TableGen/*.h", @@ -609,11 +616,7 @@ cc_binary( # regular dependency. "include/llvm/MC/*.h", ]), - textual_hdrs = glob([ - "utils/TableGen/*.def", - ]), copts = llvm_copts, - stamp = 0, deps = [ ":LLVMTableGenGlobalISel", ":Support", -- 2.7.4