[PATCH] D130720: Add `llvm-dwarfutil` to Bazel targets
Daniele Vettorel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 11:23:46 PDT 2022
vettoreldaniele created this revision.
vettoreldaniele added reviewers: GMNGeoffrey, kuhar.
vettoreldaniele added a project: bazel build.
Herald added a project: All.
vettoreldaniele requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Adds support for building the `llvm-dwarfutil` tool with Bazel
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130720
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
@@ -2991,6 +2991,40 @@
],
)
+gentbl(
+ name = "DwarfutilOptionsTableGen",
+ strip_include_prefix = "tools/llvm-dwarfutil",
+ tbl_outs = [(
+ "-gen-opt-parser-defs",
+ "tools/llvm-dwarfutil/Options.inc",
+ )],
+ tblgen = ":llvm-tblgen",
+ td_file = "tools/llvm-dwarfutil/Options.td",
+ td_srcs = ["include/llvm/Option/OptParser.td"],
+)
+
+cc_binary(
+ name = "llvm-dwarfutil",
+ srcs = glob([
+ "tools/llvm-dwarfutil/*.cpp",
+ "tools/llvm-dwarfutil/*.h",
+ ]),
+ copts = llvm_copts,
+ stamp = 0,
+ deps = [
+ ":AllTargetsAsmParsers",
+ ":AllTargetsCodeGens",
+ ":DWARFLinker",
+ ":DwarfutilOptionsTableGen",
+ ":MC",
+ ":ObjCopy",
+ ":Object",
+ ":Option",
+ ":Support",
+ ":Target",
+ ],
+)
+
cc_binary(
name = "llvm-dwp",
srcs = glob([
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130720.448391.patch
Type: text/x-patch
Size: 1130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220728/4d67e770/attachment.bin>
More information about the llvm-commits
mailing list