[PATCH] D151131: [bazel] Add clang-offload-packager and clang-linker-wrapper
Aaron Siddhartha Mondal via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 22 11:42:54 PDT 2023
aaronmondal created this revision.
aaronmondal added reviewers: MaskRay, phosek, GMNGeoffrey, csigg.
Herald added a project: All.
aaronmondal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151131
Files:
utils/bazel/llvm-project-overlay/clang/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/clang/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -2251,6 +2251,68 @@
],
)
+cc_binary(
+ name = "clang-offload-packager",
+ srcs = glob(["tools/clang-offload-packager/*.cpp"]),
+ stamp = 0,
+ deps = [
+ ":basic",
+ "//llvm:BinaryFormat",
+ "//llvm:Object",
+ "//llvm:Support",
+ ],
+)
+
+gentbl(
+ name = "linker_wrapper_opts_gen",
+ tbl_outs = [(
+ "-gen-opt-parser-defs",
+ "tools/clang-linker-wrapper/LinkerWrapperOpts.inc",
+ )],
+ tblgen = "//llvm:llvm-tblgen",
+ td_file = "tools/clang-linker-wrapper/LinkerWrapperOpts.td",
+ td_srcs = [
+ "tools/clang-linker-wrapper/LinkerWrapperOpts.td",
+ "//llvm:include/llvm/Option/OptParser.td",
+ ],
+)
+
+cc_binary(
+ name = "clang-linker-wrapper",
+ srcs = [
+ "tools/clang-linker-wrapper/ClangLinkerWrapper.cpp",
+ "tools/clang-linker-wrapper/OffloadWrapper.cpp",
+ "tools/clang-linker-wrapper/OffloadWrapper.h",
+ ],
+ copts = [
+ "-I$(GENDIR)/$(WORKSPACE_ROOT)/clang/tools/clang-linker-wrapper",
+ ],
+ toolchains = [
+ ":workspace_root",
+ ],
+ stamp = 0,
+ deps = [
+ ":basic",
+ ":linker_wrapper_opts_gen",
+ "//llvm:AllTargetsAsmParsers",
+ "//llvm:BitWriter",
+ "//llvm:Core",
+ "//llvm:BinaryFormat",
+ "//llvm:MC",
+ "//llvm:Target",
+ "//llvm:TransformUtils",
+ "//llvm:Analysis",
+ "//llvm:Passes",
+ "//llvm:IRReader",
+ "//llvm:Object",
+ "//llvm:Option",
+ "//llvm:Support",
+ "//llvm:TargetParser",
+ "//llvm:CodeGen",
+ "//llvm:LTO",
+ ],
+)
+
cc_binary(
name = "clang-refactor",
srcs = glob([
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151131.524410.patch
Type: text/x-patch
Size: 1951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230522/da6198b2/attachment.bin>
More information about the llvm-commits
mailing list