[bazel] Port debuginfod rules

Needed after 34491ca729
This commit is contained in:
Benjamin Kramer 2021-12-14 13:12:39 +01:00
parent 65033ef9e8
commit 12d42653b3
2 changed files with 27 additions and 0 deletions

View File

@ -397,6 +397,20 @@ cc_library(
],
)
cc_library(
name = "Debuginfod",
srcs = glob([
"lib/Debuginfod/*.cpp",
]),
hdrs = glob([
"include/llvm/Debuginfod/*.h",
]),
copts = llvm_copts,
deps = [
":Support",
],
)
cc_library(
name = "MC",
srcs = glob([
@ -449,6 +463,7 @@ cc_library(
":DebugInfo",
":DebugInfoDWARF",
":DebugInfoPDB",
":Debuginfod",
":Demangle",
":Object",
":Support",
@ -3690,6 +3705,7 @@ cc_binary(
deps = [
":DebugInfoDWARF",
":DebugInfoPDB",
":Debuginfod",
":Object",
":Option",
":Support",

View File

@ -199,6 +199,17 @@ cc_test(
],
)
cc_test(
name = "debuginfod_tests",
srcs = glob(["Debuginfod/*.cpp"]),
deps = [
"//llvm:Debuginfod",
"//llvm:TestingSupport",
"//llvm:gtest",
"//llvm:gtest_main",
],
)
cc_test(
name = "execution_engine_tests",
size = "small",