Index: clang/CMakeLists.txt =================================================================== --- clang/CMakeLists.txt +++ clang/CMakeLists.txt @@ -114,6 +114,7 @@ include(TableGen) include(HandleLLVMOptions) include(VersionFromVCS) + include(LLVMDistributionSupport) set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}") @@ -852,6 +853,10 @@ 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)