[build] Add the ability to create a symlink for lipo

Add user enabled option to create lipo with symlink to llvm-lipo
Used rL326381 for reference.

Differential Revision: https://reviews.llvm.org/D65477

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367444 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anusha Basana 2019-07-31 16:46:57 +00:00
parent e7d1432306
commit d174e9120d
3 changed files with 11 additions and 0 deletions

View File

@ -178,6 +178,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
option(LLVM_INSTALL_BINUTILS_SYMLINKS
"Install symlinks from the binutils tool names to the corresponding LLVM tools." OFF)
option(LLVM_INSTALL_CCTOOLS_SYMLINKS
"Install symlinks from the cctools tool names to the corresponding LLVM tools." OFF)
option(LLVM_INSTALL_UTILS "Include utility binaries in the 'install' target." OFF)
option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF)

View File

@ -228,6 +228,10 @@ LLVM-specific variables
Install symlinks from the binutils tool names to the corresponding LLVM tools.
For example, ar will be symlinked to llvm-ar.
**LLVM_INSTALL_CCTOOLS_SYMLINKS**:BOOL
Install symliks from the cctools tool names to the corresponding LLVM tools.
For example, lipo will be symlinked to llvm-lipo.
**LLVM_BUILD_EXAMPLES**:BOOL
Build LLVM examples. Defaults to OFF. Targets for building each example are
generated in any case. See documentation for *LLVM_BUILD_TOOLS* above for more

View File

@ -14,3 +14,7 @@ add_llvm_tool(llvm-lipo
DEPENDS
LipoOptsTableGen
)
if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
add_llvm_tool_symlink(lipo llvm-lipo)
endif()