brintos

brintos / llvm-project-archived public Read only

0
0
Text · 880 B · 6f8de1f Raw
35 lines · plain
1# FIXME: As we plan to execute llvm-symbolizer binary from compiler-rt2# 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 these4# 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_COMPONENTS11  Demangle12  Object13  Option14  Support15  Symbolize16  )17 18add_llvm_tool(llvm-symbolizer19  llvm-symbolizer.cpp20 21  DEPENDS22  SymbolizerOptsTableGen23  GENERATE_DRIVER24  )25 26if(NOT LLVM_TOOL_LLVM_DRIVER_BUILD)27  target_link_libraries(llvm-symbolizer PRIVATE LLVMDebuginfod)28endif()29 30add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)31 32if(LLVM_INSTALL_BINUTILS_SYMLINKS)33  add_llvm_tool_symlink(addr2line llvm-symbolizer)34endif()35