• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# FIXME: As we plan to execute llvm-symbolizer binary from compiler-rt
2# libraries, it has to be compiled for all supported targets (x86_64, i386 etc).
3# This means that we need LLVM libraries to be compiled for these
4# targets as well. Currently, there is no support for such a build strategy.
5
6set(LLVM_TARGET_DEFINITIONS Opts.td)
7tablegen(LLVM Opts.inc -gen-opt-parser-defs)
8add_public_tablegen_target(SymbolizerOptsTableGen)
9
10set(LLVM_LINK_COMPONENTS
11  DebugInfoDWARF
12  DebugInfoPDB
13  Demangle
14  Object
15  Option
16  Support
17  Symbolize
18  )
19
20add_llvm_tool(llvm-symbolizer
21  llvm-symbolizer.cpp
22  DEPENDS
23  SymbolizerOptsTableGen
24  )
25
26add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)
27
28if(LLVM_INSTALL_BINUTILS_SYMLINKS)
29  add_llvm_tool_symlink(addr2line llvm-symbolizer)
30endif()
31