Skip to content

Commit

Permalink
[bazel] Port debuginfod rules
Browse files Browse the repository at this point in the history
Needed after 34491ca
  • Loading branch information
d0k committed Dec 14, 2021
1 parent 65033ef commit 12d4265
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Expand Up @@ -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([
Expand Down Expand Up @@ -449,6 +463,7 @@ cc_library(
":DebugInfo",
":DebugInfoDWARF",
":DebugInfoPDB",
":Debuginfod",
":Demangle",
":Object",
":Support",
Expand Down Expand Up @@ -3690,6 +3705,7 @@ cc_binary(
deps = [
":DebugInfoDWARF",
":DebugInfoPDB",
":Debuginfod",
":Object",
":Option",
":Support",
Expand Down
11 changes: 11 additions & 0 deletions utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
Expand Up @@ -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",
Expand Down

0 comments on commit 12d4265

Please sign in to comment.