Index: llvm/trunk/CMakeLists.txt =================================================================== --- llvm/trunk/CMakeLists.txt +++ llvm/trunk/CMakeLists.txt @@ -178,6 +178,9 @@ 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) Index: llvm/trunk/docs/CMake.rst =================================================================== --- llvm/trunk/docs/CMake.rst +++ llvm/trunk/docs/CMake.rst @@ -228,6 +228,10 @@ 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 Index: llvm/trunk/tools/llvm-lipo/CMakeLists.txt =================================================================== --- llvm/trunk/tools/llvm-lipo/CMakeLists.txt +++ llvm/trunk/tools/llvm-lipo/CMakeLists.txt @@ -14,3 +14,7 @@ DEPENDS LipoOptsTableGen ) + +if(LLVM_INSTALL_CCTOOLS_SYMLINKS) + add_llvm_tool_symlink(lipo llvm-lipo) +endif()