diff options
author | Anusha Basana <anusha.basana@gmail.com> | 2019-07-31 16:46:57 +0000 |
---|---|---|
committer | Anusha Basana <anusha.basana@gmail.com> | 2019-07-31 16:46:57 +0000 |
commit | f7fbd6cb9f705ac543673141e7a52030d1617fc7 (patch) | |
tree | 6d0a0891c8d36c967f19342d15ae41abe0a3941a | |
parent | ba1e845c211893c3c2f392913232b176908ea7a2 (diff) | |
download | bcm5719-llvm-f7fbd6cb9f705ac543673141e7a52030d1617fc7.tar.gz bcm5719-llvm-f7fbd6cb9f705ac543673141e7a52030d1617fc7.zip |
[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
llvm-svn: 367444
-rw-r--r-- | llvm/CMakeLists.txt | 3 | ||||
-rw-r--r-- | llvm/docs/CMake.rst | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-lipo/CMakeLists.txt | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 347ebbd74ad..44a269292fa 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -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) diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst index 91fb5282206..2631792af15 100644 --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -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 diff --git a/llvm/tools/llvm-lipo/CMakeLists.txt b/llvm/tools/llvm-lipo/CMakeLists.txt index b51f792223c..992785723f0 100644 --- a/llvm/tools/llvm-lipo/CMakeLists.txt +++ b/llvm/tools/llvm-lipo/CMakeLists.txt @@ -14,3 +14,7 @@ add_llvm_tool(llvm-lipo DEPENDS LipoOptsTableGen ) + +if(LLVM_INSTALL_CCTOOLS_SYMLINKS) + add_llvm_tool_symlink(lipo llvm-lipo) +endif() |