From 5b197aa45f90b5d20b369860db6e496ee367c8ee Mon Sep 17 00:00:00 2001 From: Kila2 Date: Sat, 18 Jan 2025 00:26:32 +0800 Subject: [PATCH] fix: add some missing deps --- .../llvm-project-overlay/clang/BUILD.bazel | 16 +++++++++-- .../llvm-project-overlay/llvm/BUILD.bazel | 27 ++++++++++++++++--- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel index 58d3eb6ae181e2..fb839f2b117e7e 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", @@ -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", @@ -1686,6 +1690,7 @@ cc_library( ":parse", ":static_analyzer_checkers_gen", "//llvm:BinaryFormat", + "//llvm:CAS", "//llvm:FrontendDebug", "//llvm:Instrumentation", "//llvm:MC", @@ -1908,6 +1913,7 @@ cc_library( "//llvm:BitReader", "//llvm:BitstreamReader", "//llvm:BitstreamWriter", + "//llvm:CAS", "//llvm:Core", "//llvm:FrontendDebug", "//llvm:Linker", @@ -2274,6 +2280,7 @@ cc_plugin_library( ":sema", ":tooling", "//llvm:BitstreamReader", + "//llvm:CAS", "//llvm:FrontendOpenMP", "//llvm:Support", "//llvm:config", @@ -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", @@ -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. diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index bfcb53e1f6b09b..840d857d4b539b 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" ], ) @@ -3324,10 +3326,27 @@ cc_library( ":Support", ":Target", ":config", - ] + select({ - "@platforms//os:linux": [":maybe_pfm"], - "//conditions:default": [], - }), + ] +) + +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", + ] ) ################################################################################