[llvm] 024921a - Use LLVM_TOOLCHAIN_UTILITIES to allow utils to be installed in the toolchain

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 22:01:36 PDT 2020


Author: Jonas Devlieghere
Date: 2020-10-19T22:01:28-07:00
New Revision: 024921a5e165cc2e0fa7c1b3732aff6f3f5df60b

URL: https://github.com/llvm/llvm-project/commit/024921a5e165cc2e0fa7c1b3732aff6f3f5df60b
DIFF: https://github.com/llvm/llvm-project/commit/024921a5e165cc2e0fa7c1b3732aff6f3f5df60b.diff

LOG: Use LLVM_TOOLCHAIN_UTILITIES to allow utils to be installed in the toolchain

Make it possible to specify a list of utilities that should be installed
in the toolchain.

Differential revision: https://reviews.llvm.org/D89762

Added: 
    

Modified: 
    llvm/cmake/modules/AddLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index c63463c0bd23..28ab010bb8ef 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -1227,7 +1227,7 @@ macro(add_llvm_utility name)
 
   add_llvm_executable(${name} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN})
   set_target_properties(${name} PROPERTIES FOLDER "Utils")
-  if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+  if ( ${name} IN_LIST LLVM_TOOLCHAIN_UTILITIES OR NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
     if (LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS)
       set(export_to_llvmexports)
       if (${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR


        


More information about the llvm-commits mailing list