mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
8e98660f03
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
26 lines
468 B
CMake
26 lines
468 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Core
|
|
DlltoolDriver
|
|
LibDriver
|
|
Object
|
|
Support
|
|
)
|
|
|
|
add_llvm_tool(llvm-ar
|
|
llvm-ar.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|
|
|
|
add_llvm_tool_symlink(llvm-ranlib llvm-ar)
|
|
add_llvm_tool_symlink(llvm-lib llvm-ar)
|
|
add_llvm_tool_symlink(llvm-dlltool llvm-ar)
|
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
add_llvm_tool_symlink(ar llvm-ar)
|
|
add_llvm_tool_symlink(dlltool llvm-ar)
|
|
add_llvm_tool_symlink(ranlib llvm-ar)
|
|
endif()
|