Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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",
Expand Down Expand Up @@ -1687,6 +1691,7 @@ cc_library(
":parse",
":static_analyzer_checkers_gen",
"//llvm:BinaryFormat",
"//llvm:CAS",
"//llvm:FrontendDebug",
"//llvm:Instrumentation",
"//llvm:MC",
Expand Down Expand Up @@ -1909,6 +1914,7 @@ cc_library(
"//llvm:BitReader",
"//llvm:BitstreamReader",
"//llvm:BitstreamWriter",
"//llvm:CAS",
"//llvm:Core",
"//llvm:FrontendDebug",
"//llvm:Linker",
Expand Down Expand Up @@ -2278,6 +2284,7 @@ cc_plugin_library(
":sema",
":tooling",
"//llvm:BitstreamReader",
"//llvm:CAS",
"//llvm:FrontendOpenMP",
"//llvm:Support",
"//llvm:config",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.
Expand Down
25 changes: 25 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 @@ -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

Expand Down
Loading