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.
6 set(LLVM_TARGET_DEFINITIONS Opts.td)
7 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
8 add_public_tablegen_target(SymbolizerOptsTableGen)
10 set(LLVM_LINK_COMPONENTS
18 add_llvm_tool(llvm-symbolizer
22 SymbolizerOptsTableGen
26 if(NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
27 target_link_libraries(llvm-symbolizer PRIVATE LLVMDebuginfod)
30 add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)
32 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
33 add_llvm_tool_symlink(addr2line llvm-symbolizer)