diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-11-02 21:43:32 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-11-02 21:43:32 +0000 |
commit | 08bb38f7e75159f54c91667695954c5c0dbb69a0 (patch) | |
tree | 102f9fa67a85648bd95af61c2b5f515175618d00 /llvm/tools/llvm-objdump | |
parent | 07eaa9b46ee01a37bcfcc00b60bf9735701c2c20 (diff) | |
download | bcm5719-llvm-08bb38f7e75159f54c91667695954c5c0dbb69a0.tar.gz bcm5719-llvm-08bb38f7e75159f54c91667695954c5c0dbb69a0.zip |
[tools] Add option to install binutils symlinks
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
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r-- | llvm/tools/llvm-objdump/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/CMakeLists.txt b/llvm/tools/llvm-objdump/CMakeLists.txt index 27e6145dfc1..043a181d639 100644 --- a/llvm/tools/llvm-objdump/CMakeLists.txt +++ b/llvm/tools/llvm-objdump/CMakeLists.txt @@ -25,3 +25,7 @@ add_llvm_tool(llvm-objdump if(HAVE_LIBXAR) target_link_libraries(llvm-objdump ${XAR_LIB}) endif() + +if(LLVM_INSTALL_BINUTILS_SYMLINKS) + add_llvm_tool_symlink(objdump llvm-objdump) +endif() |