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
20 add_llvm_tool(llvm-symbolizer
24 SymbolizerOptsTableGen
27 target_link_libraries(llvm-symbolizer PRIVATE LLVMDebuginfod)
29 add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)
31 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
32 add_llvm_tool_symlink(addr2line llvm-symbolizer)