Skip to content

Commit cdbeaf5

Browse files
committed
[clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build
Differential Revision: https://reviews.llvm.org/D68412 llvm-svn: 373936
1 parent fdaa742 commit cdbeaf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
114114
include(TableGen)
115115
include(HandleLLVMOptions)
116116
include(VersionFromVCS)
117+
include(LLVMDistributionSupport)
117118

118119
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
119120

@@ -858,6 +859,10 @@ if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)
858859
endif()
859860
add_subdirectory(utils/hmaptool)
860861

862+
if(CLANG_BUILT_STANDALONE)
863+
llvm_distribution_add_targets()
864+
endif()
865+
861866
configure_file(
862867
${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake
863868
${CLANG_BINARY_DIR}/include/clang/Config/config.h)

0 commit comments

Comments
 (0)