[PATCH] D148738: [bazel] Fix the bazel build for llvmorg-17-init-8629-ga443b3d18ef4
Haojian Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 13:03:21 PDT 2023
hokein created this revision.
Herald added a project: All.
hokein 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/D148738
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
@@ -824,10 +824,14 @@
"lib/Analysis/FlowSensitive/*.cpp",
"lib/Analysis/*.cpp",
"lib/Analysis/*.h",
- ]),
+ ]) + [":analysis_htmllogger_gen"],
hdrs = glob([
"include/clang/Analysis/**/*.h",
]),
+ copts = [
+ # For including :analysis_htmllogger_gen resources
+ "-I$(GENDIR)/external/llvm-project/clang/lib/Analysis/FlowSensitive",
+ ],
includes = ["include"],
textual_hdrs = glob([
"include/clang/Analysis/**/*.def",
@@ -841,6 +845,21 @@
],
)
+genrule(
+ name = "analysis_htmllogger_gen",
+ srcs = [
+ "lib/Analysis/FlowSensitive/HTMLLogger.css",
+ "lib/Analysis/FlowSensitive/HTMLLogger.js",
+ "lib/Analysis/FlowSensitive/HTMLLogger.html",
+ ],
+ outs = ["lib/Analysis/FlowSensitive/HTMLLogger.inc"],
+ cmd =
+ "python3 $(location utils/bundle_resources.py) $@ $(SRCS)",
+ exec_tools = [
+ "utils/bundle_resources.py",
+ ],
+)
+
gentbl(
name = "sema_attr_gen",
tbl_outs = [
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148738.515055.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230419/f6d3230d/attachment.bin>
More information about the llvm-commits
mailing list