]> granicus.if.org Git - clang/commitdiff
[clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build
authorMichal Gorny <mgorny@gentoo.org>
Mon, 7 Oct 2019 18:14:56 +0000 (18:14 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Mon, 7 Oct 2019 18:14:56 +0000 (18:14 +0000)
Differential Revision: https://reviews.llvm.org/D68412

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373936 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index aa21329365db4e176cecd54ab504f454b7a64349..45d2431a7462881e258ae349c04a3c59c65a273c 100644 (file)
@@ -114,6 +114,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
   include(TableGen)
   include(HandleLLVMOptions)
   include(VersionFromVCS)
+  include(LLVMDistributionSupport)
 
   set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
 
@@ -858,6 +859,10 @@ if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)
 endif()
 add_subdirectory(utils/hmaptool)
 
+if(CLANG_BUILT_STANDALONE)
+  llvm_distribution_add_targets()
+endif()
+
 configure_file(
   ${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake
   ${CLANG_BINARY_DIR}/include/clang/Config/config.h)