[llvm] [Bazel] Fix: add some missing deps (PR #123365)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 08:29:37 PST 2025
https://github.com/Kila2 created https://github.com/llvm/llvm-project/pull/123365
None
>From 14ad6114b4c39cbc74cf9d24015d6cebaa2afc89 Mon Sep 17 00:00:00 2001
From: Kila2 <lijunliang9819 at qq.com>
Date: Sat, 18 Jan 2025 00:26:32 +0800
Subject: [PATCH] [Bazel] Fix: add some missing deps
---
.../llvm-project-overlay/clang/BUILD.bazel | 16 ++++++++++--
.../llvm-project-overlay/llvm/BUILD.bazel | 25 +++++++++++++++++++
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 2286d4cd35e08e..0e175abbdf8400 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -46,6 +46,7 @@ gentbl(
tbl_outs = [out for c in [
"AST",
"Analysis",
+ "CAS",
"Comment",
"Common",
"CrossTU",
@@ -1457,7 +1458,10 @@ cc_library(
cc_library(
name = "tooling_dependency_scanning",
- srcs = glob(["lib/Tooling/DependencyScanning/**/*.cpp"]),
+ srcs = glob([
+ "lib/Tooling/DependencyScanning/**/*.cpp",
+ "lib/Tooling/DependencyScanning/**/*.h",
+ ]),
hdrs = glob(["include/clang/Tooling/DependencyScanning/**/*.h"]),
deps = [
":basic",
@@ -1687,6 +1691,7 @@ cc_library(
":parse",
":static_analyzer_checkers_gen",
"//llvm:BinaryFormat",
+ "//llvm:CAS",
"//llvm:FrontendDebug",
"//llvm:Instrumentation",
"//llvm:MC",
@@ -1909,6 +1914,7 @@ cc_library(
"//llvm:BitReader",
"//llvm:BitstreamReader",
"//llvm:BitstreamWriter",
+ "//llvm:CAS",
"//llvm:Core",
"//llvm:FrontendDebug",
"//llvm:Linker",
@@ -2278,6 +2284,7 @@ cc_plugin_library(
":sema",
":tooling",
"//llvm:BitstreamReader",
+ "//llvm:CAS",
"//llvm:FrontendOpenMP",
"//llvm:Support",
"//llvm:config",
@@ -2305,6 +2312,8 @@ cc_binary(
srcs = [
"tools/c-index-test/c-index-test.c",
"tools/c-index-test/core_main.cpp",
+ "tools/c-index-test/JSONAggregation.cpp",
+ "tools/c-index-test/JSONAggregation.h",
],
copts = [
"-Wno-uninitialized",
@@ -2409,7 +2418,10 @@ cc_binary(
cc_library(
name = "clang-driver",
- srcs = glob(["tools/driver/*.cpp"]),
+ srcs = glob([
+ "tools/driver/*.cpp",
+ "tools/driver/*.h",
+ ]),
copts = [
# Disable stack frame size checks in the driver because
# clang::ensureStackAddressSpace allocates a large array on the stack.
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index bfcb53e1f6b09b..9abde88069ef01 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -923,6 +923,8 @@ cc_library(
":BitstreamReader",
":BitstreamWriter",
":Support",
+ ":intrinsic_enums_gen",
+ ":attributes_gen"
],
)
@@ -3330,6 +3332,29 @@ cc_library(
}),
)
+cc_library(
+ name = "CAS",
+ srcs = glob(
+ [
+ "lib/CAS/*.cpp",
+ "lib/CAS/*.h",
+ ],
+ allow_empty = True,
+ ),
+ hdrs = glob([
+ "include/llvm/CAS/*.h",
+ ]),
+ textual_hdrs = glob(["lib/CAS/*.def"]),
+ copts = llvm_copts,
+ deps = [
+ ":BinaryFormat",
+ ":Support",
+ ] + select({
+ "@platforms//os:linux": [":maybe_pfm"],
+ "//conditions:default": [],
+ }),
+)
+
################################################################################
# LLVM toolchain and development binaries
More information about the llvm-commits
mailing list