Skip to content

Commit

Permalink
[clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone b…
Browse files Browse the repository at this point in the history
…uild

Differential Revision: https://reviews.llvm.org/D68412

llvm-svn: 373936
  • Loading branch information
mgorny committed Oct 7, 2019
1 parent fdaa742 commit cdbeaf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clang/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit cdbeaf5

Please sign in to comment.