[PATCH] D115721: [Bazel] Add build and test targets for Debuginfod

Dmitri Gribenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 14 04:16:08 PST 2021


gribozavr created this revision.
gribozavr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Also added the Debuginfod library to various dependency list as required
by 34491ca7291ceb3d4e7ad65288b9b48c6d7eeb44 <https://reviews.llvm.org/rG34491ca7291ceb3d4e7ad65288b9b48c6d7eeb44>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115721

Files:
  utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
  utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel


Index: utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
@@ -199,6 +199,22 @@
     ],
 )
 
+cc_test(
+    name = "debuginfod_tests",
+    size = "medium",
+    srcs = glob(
+        ["Debuginfod/*.cpp"],
+        allow_empty = False,
+    ),
+    deps = [
+        "//llvm:Debuginfod",
+        "//llvm:Support",
+        "//llvm:TestingSupport",
+        "//llvm:gtest",
+        "//llvm:gtest_main",
+    ],
+)
+
 cc_test(
     name = "execution_engine_tests",
     size = "small",
Index: utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -436,6 +436,19 @@
     ],
 )
 
+cc_library(
+    name = "Debuginfod",
+    srcs = glob([
+        "lib/Debuginfod/*.cpp",
+        "lib/Debuginfod/*.h",
+    ]),
+    hdrs = glob(["include/llvm/Debuginfod/*.h"]),
+    copts = llvm_copts,
+    deps = [
+        ":Support",
+    ],
+)
+
 cc_library(
     name = "Symbolize",
     srcs = glob([
@@ -449,6 +462,7 @@
         ":DebugInfo",
         ":DebugInfoDWARF",
         ":DebugInfoPDB",
+        ":Debuginfod",
         ":Demangle",
         ":Object",
         ":Support",
@@ -3690,6 +3704,7 @@
     deps = [
         ":DebugInfoDWARF",
         ":DebugInfoPDB",
+        ":Debuginfod",
         ":Object",
         ":Option",
         ":Support",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115721.394205.patch
Type: text/x-patch
Size: 1628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211214/4083015e/attachment.bin>


More information about the llvm-commits mailing list