[Bazel] Update Bazel build to add symbol_graph.
authorAdrian Kuegel <akuegel@google.com>
Thu, 17 Mar 2022 07:49:27 +0000 (08:49 +0100)
committerAdrian Kuegel <akuegel@google.com>
Thu, 17 Mar 2022 09:53:04 +0000 (10:53 +0100)
Differential Revision: https://reviews.llvm.org/D121886

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

index fedcd79faa403ff27d7ad839128004fab097b64a..cf127dd2dea253a2362f7c37deba9ace9d064a40 100644 (file)
@@ -1284,6 +1284,23 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "symbol_graph",
+    srcs = glob([
+        "lib/SymbolGraph/*.cpp",
+    ]),
+    hdrs = glob([
+        "include/clang/SymbolGraph/*.h",
+    ]),
+    includes = ["include"],
+    deps = [
+        ":ast",
+        ":basic",
+        ":frontend",
+        ":index",
+    ],
+)
+
 gentbl(
     name = "driver_options_inc_gen",
     tbl_outs = [(
@@ -1716,6 +1733,7 @@ cc_library(
         ":frontend",
         ":frontend_rewrite",
         ":static_analyzer_frontend",
+        ":symbol_graph",
         "//llvm:Option",
         "//llvm:Support",
     ],