[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 23:37:57 PDT 2016


phosek updated this revision to Diff 72985.
phosek marked an inline comment as done.

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 AND ${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.72985.patch
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/0b7df0db/attachment.bin>


More information about the llvm-commits mailing list