[llvm] r326381 - build: add the ability to create a symlink for dsymutil

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 15:00:50 PST 2018


Author: compnerd
Date: Wed Feb 28 15:00:50 2018
New Revision: 326381

URL: http://llvm.org/viewvc/llvm-project?rev=326381&view=rev
Log:
build: add the ability to create a symlink for dsymutil

Add a `LLVM_INSTALL_CCTOOLS_SYMLINKS` to mirror
`LLVM_INSTALL_BINUTILS_SYMLINKS`.  For now, this allows us to create
symlinks for `dsymutil` to `llvm-dsymutil`.  This option is off by
default, but the user can enable it.

Modified:
    llvm/trunk/CMakeLists.txt
    llvm/trunk/docs/CMake.rst
    llvm/trunk/tools/dsymutil/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=326381&r1=326380&r2=326381&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Feb 28 15:00:50 2018
@@ -194,6 +194,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)

Modified: llvm/trunk/docs/CMake.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.rst?rev=326381&r1=326380&r2=326381&view=diff
==============================================================================
--- llvm/trunk/docs/CMake.rst (original)
+++ llvm/trunk/docs/CMake.rst Wed Feb 28 15:00:50 2018
@@ -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, dsymutil will be symlinked to llvm-dsymutil.
+
 **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

Modified: llvm/trunk/tools/dsymutil/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/CMakeLists.txt?rev=326381&r1=326380&r2=326381&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/CMakeLists.txt (original)
+++ llvm/trunk/tools/dsymutil/CMakeLists.txt Wed Feb 28 15:00:50 2018
@@ -21,6 +21,11 @@ add_llvm_tool(llvm-dsymutil
   intrinsics_gen
   )
 
-IF(APPLE)
+if(APPLE)
   target_link_libraries(llvm-dsymutil PRIVATE "-framework CoreFoundation")
-ENDIF(APPLE)
+endif(APPLE)
+
+if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
+  add_llvm_tool_symlink(dsymutil llvm-dsymutil)
+endif()
+




More information about the llvm-commits mailing list