llvm.org GIT mirror llvm / 9b62265
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326381 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 2 years ago
3 changed file(s) with 14 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
192192
193193 option(LLVM_INSTALL_BINUTILS_SYMLINKS
194194 "Install symlinks from the binutils tool names to the corresponding LLVM tools." OFF)
195
196 option(LLVM_INSTALL_CCTOOLS_SYMLINKS
197 "Install symlinks from the cctools tool names to the corresponding LLVM tools." OFF)
195198
196199 option(LLVM_INSTALL_UTILS "Include utility binaries in the 'install' target." OFF)
197200
226226 **LLVM_INSTALL_BINUTILS_SYMLINKS**:BOOL
227227 Install symlinks from the binutils tool names to the corresponding LLVM tools.
228228 For example, ar will be symlinked to llvm-ar.
229
230 **LLVM_INSTALL_CCTOOLS_SYMLINKS**:BOOL
231 Install symliks from the cctools tool names to the corresponding LLVM tools.
232 For example, dsymutil will be symlinked to llvm-dsymutil.
229233
230234 **LLVM_BUILD_EXAMPLES**:BOOL
231235 Build LLVM examples. Defaults to OFF. Targets for building each example are
2020 intrinsics_gen
2121 )
2222
23 IF(APPLE)
23 if(APPLE)
2424 target_link_libraries(llvm-dsymutil PRIVATE "-framework CoreFoundation")
25 ENDIF(APPLE)
25 endif(APPLE)
26
27 if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
28 add_llvm_tool_symlink(dsymutil llvm-dsymutil)
29 endif()
30