Skip to content

Commit 6043321

Browse files
committed
[gn] port bc152fb (llvm-debuginfod-find driver_exe)
1 parent 5f25b89 commit 6043321

File tree

1 file changed

+10
-1
lines changed
  • llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find

1 file changed

+10
-1
lines changed

llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import("//llvm/tools/binutils_symlinks.gni")
2+
import("//llvm/utils/TableGen/tablegen.gni")
3+
import("//llvm/utils/gn/build/driver_executable.gni")
24
import("//llvm/utils/gn/build/symlink_or_copy.gni")
35

6+
tablegen("Opts") {
7+
visibility = [ ":llvm-debuginfod-find" ]
8+
args = [ "-gen-opt-parser-defs" ]
9+
}
10+
411
if (llvm_install_binutils_symlinks) {
512
symlink_or_copy("debuginfod-find") {
613
deps = [ ":llvm-debuginfod-find" ]
@@ -18,9 +25,11 @@ group("symlinks") {
1825
}
1926
}
2027

21-
executable("llvm-debuginfod-find") {
28+
driver_executable("llvm-debuginfod-find") {
2229
deps = [
30+
":Opts",
2331
"//llvm/lib/Debuginfod",
32+
"//llvm/lib/Option",
2433
"//llvm/lib/Support",
2534
]
2635
sources = [ "llvm-debuginfod-find.cpp" ]

0 commit comments

Comments
 (0)