2012-11-12 19:33:29 +08: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.
|
|
|
|
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
2015-01-31 02:07:45 +08:00
|
|
|
DebugInfoDWARF
|
2015-04-28 01:19:51 +08:00
|
|
|
DebugInfoPDB
|
2018-03-08 07:07:34 +08:00
|
|
|
Demangle
|
2012-11-12 19:33:29 +08:00
|
|
|
Object
|
2013-12-10 19:13:32 +08:00
|
|
|
Support
|
2015-10-27 01:56:12 +08:00
|
|
|
Symbolize
|
2012-11-12 19:33:29 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_tool(llvm-symbolizer
|
|
|
|
llvm-symbolizer.cpp
|
|
|
|
)
|
2017-11-03 05:43:32 +08:00
|
|
|
|
2019-04-19 18:17:52 +08:00
|
|
|
add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)
|
|
|
|
|
2017-11-03 05:43:32 +08:00
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(addr2line llvm-symbolizer)
|
|
|
|
endif()
|