summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2023-04-06 22:27:20 +0900
committerNAKAMURA Takumi <geek4civic@gmail.com>2023-04-06 22:48:10 +0900
commitff1b820c7d0cd46f024c0d93a0994e6f5996cc16 (patch)
tree8c63b5f43a10a79fdbbf0a1d7c16afae7a9261c1 /utils
parent6edad0c8f04fc4625570bf8513c20b14961f749e (diff)
downloadllvm-ff1b820c7d0cd46f024c0d93a0994e6f5996cc16.tar.gz
[Bazel] Rework llvm-tblgen for X86ManualFoldTables.def
It is easier to introduce header-only library.
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/llvm/BUILD.bazel15
1 files changed, 7 insertions, 8 deletions
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index cc30e4e7d87c..3900979f5efc 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -597,14 +597,13 @@ cc_library(
],
)
-cc_binary(
- name = "llvm-tblgen",
- stamp = 0,
- deps = [":UtilsTableGen"],
+cc_library(
+ name = "llvm-tblgen-headers",
+ textual_hdrs = glob(["utils/TableGen/*.def"]),
)
-cc_library(
- name = "UtilsTableGen",
+cc_binary(
+ name = "llvm-tblgen",
srcs = glob([
"utils/TableGen/*.cpp",
"utils/TableGen/*.inc",
@@ -616,14 +615,14 @@ cc_library(
"include/llvm/MC/*.h",
]),
copts = llvm_copts,
- textual_hdrs = glob(["utils/TableGen/*.def"]),
+ stamp = 0,
deps = [
":LLVMTableGenGlobalISel",
":Support",
":TableGen",
":config",
+ ":llvm-tblgen-headers",
],
- alwayslink = True,
)
gentbl(