Skip to content

Commit 5b197aa

Browse files
author
Kila2
committed
fix: add some missing deps
1 parent e1444ae commit 5b197aa

File tree

2 files changed

+37
-6
lines changed

2 files changed

+37
-6
lines changed

utils/bazel/llvm-project-overlay/clang/BUILD.bazel

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ gentbl(
4646
tbl_outs = [out for c in [
4747
"AST",
4848
"Analysis",
49+
"CAS",
4950
"Comment",
5051
"Common",
5152
"CrossTU",
@@ -1456,7 +1457,10 @@ cc_library(
14561457

14571458
cc_library(
14581459
name = "tooling_dependency_scanning",
1459-
srcs = glob(["lib/Tooling/DependencyScanning/**/*.cpp"]),
1460+
srcs = glob([
1461+
"lib/Tooling/DependencyScanning/**/*.cpp",
1462+
"lib/Tooling/DependencyScanning/**/*.h",
1463+
]),
14601464
hdrs = glob(["include/clang/Tooling/DependencyScanning/**/*.h"]),
14611465
deps = [
14621466
":basic",
@@ -1686,6 +1690,7 @@ cc_library(
16861690
":parse",
16871691
":static_analyzer_checkers_gen",
16881692
"//llvm:BinaryFormat",
1693+
"//llvm:CAS",
16891694
"//llvm:FrontendDebug",
16901695
"//llvm:Instrumentation",
16911696
"//llvm:MC",
@@ -1908,6 +1913,7 @@ cc_library(
19081913
"//llvm:BitReader",
19091914
"//llvm:BitstreamReader",
19101915
"//llvm:BitstreamWriter",
1916+
"//llvm:CAS",
19111917
"//llvm:Core",
19121918
"//llvm:FrontendDebug",
19131919
"//llvm:Linker",
@@ -2274,6 +2280,7 @@ cc_plugin_library(
22742280
":sema",
22752281
":tooling",
22762282
"//llvm:BitstreamReader",
2283+
"//llvm:CAS",
22772284
"//llvm:FrontendOpenMP",
22782285
"//llvm:Support",
22792286
"//llvm:config",
@@ -2301,6 +2308,8 @@ cc_binary(
23012308
srcs = [
23022309
"tools/c-index-test/c-index-test.c",
23032310
"tools/c-index-test/core_main.cpp",
2311+
"tools/c-index-test/JSONAggregation.cpp",
2312+
"tools/c-index-test/JSONAggregation.h",
23042313
],
23052314
copts = [
23062315
"-Wno-uninitialized",
@@ -2405,7 +2414,10 @@ cc_binary(
24052414

24062415
cc_library(
24072416
name = "clang-driver",
2408-
srcs = glob(["tools/driver/*.cpp"]),
2417+
srcs = glob([
2418+
"tools/driver/*.cpp",
2419+
"tools/driver/*.h",
2420+
]),
24092421
copts = [
24102422
# Disable stack frame size checks in the driver because
24112423
# clang::ensureStackAddressSpace allocates a large array on the stack.

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,8 @@ cc_library(
923923
":BitstreamReader",
924924
":BitstreamWriter",
925925
":Support",
926+
":intrinsic_enums_gen",
927+
":attributes_gen"
926928
],
927929
)
928930

@@ -3324,10 +3326,27 @@ cc_library(
33243326
":Support",
33253327
":Target",
33263328
":config",
3327-
] + select({
3328-
"@platforms//os:linux": [":maybe_pfm"],
3329-
"//conditions:default": [],
3330-
}),
3329+
]
3330+
)
3331+
3332+
cc_library(
3333+
name = "CAS",
3334+
srcs = glob(
3335+
[
3336+
"lib/CAS/*.cpp",
3337+
"lib/CAS/*.h",
3338+
],
3339+
allow_empty = True,
3340+
),
3341+
hdrs = glob([
3342+
"include/llvm/CAS/*.h",
3343+
]),
3344+
textual_hdrs = glob(["lib/CAS/*.def"]),
3345+
copts = llvm_copts,
3346+
deps = [
3347+
":BinaryFormat",
3348+
":Support",
3349+
]
33313350
)
33323351

33333352
################################################################################

0 commit comments

Comments
 (0)