mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
0d4dd65ccc
This adds an alias for llvm-symbolizer with different defaults so that it can be used as a drop-in replacement for GNU's addr2line. If a substring "addr2line" is found in the tool's name: * it defaults "-i", "-f" and "-C" to OFF; * it uses "--output-style=GNU" by default. Differential Revision: https://reviews.llvm.org/D60067 llvm-svn: 358749
24 lines
606 B
CMake
24 lines
606 B
CMake
# 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
|
|
DebugInfoDWARF
|
|
DebugInfoPDB
|
|
Demangle
|
|
Object
|
|
Support
|
|
Symbolize
|
|
)
|
|
|
|
add_llvm_tool(llvm-symbolizer
|
|
llvm-symbolizer.cpp
|
|
)
|
|
|
|
add_llvm_tool_symlink(llvm-addr2line llvm-symbolizer)
|
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
add_llvm_tool_symlink(addr2line llvm-symbolizer)
|
|
endif()
|