2012-11-12 12:33:29 +01:00
|
|
|
# FIXME: As we plan to execute llvm-symbolizer binary from compiler-rt
|
|
|
|
# libraries, it has to be compiled for all supported targets (x86_64, i386 etc).
|
|
|
|
# This means that we need LLVM libraries to be compiled for these
|
|
|
|
# targets as well. Currently, there is no support for such a build strategy.
|
|
|
|
|
2020-08-04 17:51:24 +02:00
|
|
|
set(LLVM_TARGET_DEFINITIONS Opts.td)
|
|
|
|
tablegen(LLVM Opts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(SymbolizerOptsTableGen)
|
|
|
|
|
2012-11-12 12:33:29 +01:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2015-01-30 19:07:45 +01:00
|
|
|
DebugInfoDWARF
|
2015-04-27 19:19:51 +02:00
|
|
|
DebugInfoPDB
|
2018-03-08 00:07:34 +01:00
|
|
|
Demangle
|
2012-11-12 12:33:29 +01:00
|
|
|
Object
|
2020-08-04 17:51:24 +02:00
|
|
|
Option
|
2013-12-10 12:13:32 +01:00
|
|
|
Support
|
2015-10-26 18:56:12 +01:00
|
|
|
Symbolize
|
2012-11-12 12:33:29 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_tool(llvm-symbolizer
|
|
|
|
llvm-symbolizer.cpp
|
2020-08-04 17:51:24 +02:00
|
|
|
DEPENDS
|
|
|
|
SymbolizerOptsTableGen
|
2012-11-12 12:33:29 +01:00
|
|
|
)
|
2017-11-02 22:43:32 +01:00
|
|
|
|
2019-04-19 12:17:52 +02:00
|
|
|
add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)
|
|
|
|
|
2017-11-02 22:43:32 +01:00
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(addr2line llvm-symbolizer)
|
|
|
|
endif()
|