[PATCH] [Updated, 6 lines] D25067: [CMake] Support symlinks even with LLVM_INSTALL_TOOLCHAIN_ONLY

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 29 22:52:42 PDT 2016


phosek removed rL LLVM as the repository for this revision.
phosek updated this revision to Diff 72982.

https://reviews.llvm.org/D25067

Files:
  cmake/modules/AddLLVM.cmake


Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -1264,11 +1264,11 @@
     set_target_properties(${target_name} PROPERTIES FOLDER Tools)
 
     # Make sure both the link and target are toolchain tools
-    if (NOT ${name} IN_LIST LLVM_TOOLCHAIN_TOOLS OR NOT ${dest} IN_LIST LLVM_TOOLCHAIN_TOOLS)
-      return()
+    if (${name} IN_LIST LLVM_TOOLCHAIN_TOOLS OR ${dest} IN_LIST LLVM_TOOLCHAIN_TOOLS)
+      set(TOOL_IS_TOOLCHAIN ON)
     endif()
 
-    if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND LLVM_BUILD_TOOLS )
+    if ((TOOL_IS_TOOLCHAIN OR NOT LLVM_INSTALL_TOOLCHAIN_ONLY) AND LLVM_BUILD_TOOLS)
       llvm_install_symlink(${name} ${dest})
     endif()
   endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25067.72982.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/1ac04032/attachment.bin>


More information about the llvm-commits mailing list