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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326381
91177308-0d34-0410-b5e6-
96231b3b80d8
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)
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
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()
+