aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-debuginfod-find/CMakeLists.txt
blob: 39da11fcd959902bcc12b97a2daf869bfe35777c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set(LLVM_LINK_COMPONENTS
  Option
  Object
  Support
  )
set(LLVM_TARGET_DEFINITIONS Opts.td)
tablegen(LLVM Opts.inc -gen-opt-parser-defs)
add_public_tablegen_target(DebugInfodFindOptsTableGen)

add_llvm_tool(llvm-debuginfod-find
  llvm-debuginfod-find.cpp
  DEPENDS
  DebugInfodFindOptsTableGen
  GENERATE_DRIVER
  )
if(NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
  target_link_libraries(llvm-debuginfod-find PRIVATE LLVMDebuginfod)
endif()
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
  add_llvm_tool_symlink(debuginfod-find llvm-debuginfod-find)
endif()