[PATCH] D65477: [build] add the ability to create a symlink for lipo
Anusha Basana via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 13:53:24 PDT 2019
anushabasana created this revision.
anushabasana added reviewers: smeenai, alexshap, compnerd, mtrent.
anushabasana added a project: LLVM.
Herald added subscribers: llvm-commits, mgorny.
anushabasana edited the summary of this revision.
Add user enabled option to create lipo with symlink to llvm-lipo
Used rL326381 <https://reviews.llvm.org/rL326381> for reference.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65477
Files:
llvm/CMakeLists.txt
llvm/docs/CMake.rst
llvm/tools/llvm-lipo/CMakeLists.txt
Index: llvm/tools/llvm-lipo/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-lipo/CMakeLists.txt
+++ llvm/tools/llvm-lipo/CMakeLists.txt
@@ -14,3 +14,7 @@
DEPENDS
LipoOptsTableGen
)
+
+if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
+ add_llvm_tool_symlink(lipo llvm-lipo)
+endif()
Index: llvm/docs/CMake.rst
===================================================================
--- llvm/docs/CMake.rst
+++ llvm/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/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65477.212431.patch
Type: text/x-patch
Size: 1597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190730/3a147c98/attachment.bin>
More information about the llvm-commits
mailing list