mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 17:00:01 +00:00
![Shoaib Meenai](/assets/img/avatar_default.png)
The LLVM tools can be used as a replacement for binutils, in which case it's convenient to create symlinks with the binutils names. Add support for these symlinks in the build system. As with any other llvm tool symlinks, the user can limit the installed symlinks by only adding the desired ones to `LLVM_TOOLCHAIN_TOOLS`. Differential Revision: https://reviews.llvm.org/D39530 llvm-svn: 317272
22 lines
287 B
CMake
22 lines
287 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
AsmPrinter
|
|
DebugInfoDWARF
|
|
MC
|
|
Object
|
|
Support
|
|
Target
|
|
)
|
|
|
|
add_llvm_tool(llvm-dwp
|
|
llvm-dwp.cpp
|
|
DWPError.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
add_llvm_tool_symlink(dwp llvm-dwp)
|
|
endif()
|