Skip to content

Commit

Permalink
fix: add some missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Kila2 committed Jan 17, 2025
1 parent e1444ae commit f069fe9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
16 changes: 14 additions & 2 deletions utils/bazel/llvm-project-overlay/clang/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ gentbl(
tbl_outs = [out for c in [
"AST",
"Analysis",
"CAS",
"Comment",
"Common",
"CrossTU",
Expand Down Expand Up @@ -1456,7 +1457,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",
Expand Down Expand Up @@ -1686,6 +1690,7 @@ cc_library(
":parse",
":static_analyzer_checkers_gen",
"//llvm:BinaryFormat",
"//llvm:CAS",
"//llvm:FrontendDebug",
"//llvm:Instrumentation",
"//llvm:MC",
Expand Down Expand Up @@ -1908,6 +1913,7 @@ cc_library(
"//llvm:BitReader",
"//llvm:BitstreamReader",
"//llvm:BitstreamWriter",
"//llvm:CAS",
"//llvm:Core",
"//llvm:FrontendDebug",
"//llvm:Linker",
Expand Down Expand Up @@ -2274,6 +2280,7 @@ cc_plugin_library(
":sema",
":tooling",
"//llvm:BitstreamReader",
"//llvm:CAS",
"//llvm:FrontendOpenMP",
"//llvm:Support",
"//llvm:config",
Expand Down Expand Up @@ -2301,6 +2308,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",
Expand Down Expand Up @@ -2405,7 +2414,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.
Expand Down
22 changes: 22 additions & 0 deletions utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ cc_library(
":BitstreamReader",
":BitstreamWriter",
":Support",
":intrinsic_enums_gen",
":attributes_gen"
],
)

Expand Down Expand Up @@ -3324,6 +3326,26 @@ cc_library(
":Support",
":Target",
":config",
]
)

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": [],
Expand Down

0 comments on commit f069fe9

Please sign in to comment.