Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
- index c09a8423f9f..0a2aa3520ed 100644
- --- a/clang/cmake/modules/AddClang.cmake
- +++ b/clang/cmake/modules/AddClang.cmake
- @@ -133,14 +133,7 @@ macro(add_clang_tool name)
- add_clang_executable(${name} ${ARGN})
- if (CLANG_BUILD_TOOLS)
- - if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
- - NOT LLVM_DISTRIBUTION_COMPONENTS)
- - set(export_to_clangtargets EXPORT ClangTargets)
- - set_property(GLOBAL PROPERTY CLANG_HAS_EXPORTS True)
- - endif()
- -
- install(TARGETS ${name}
- - ${export_to_clangtargets}
- RUNTIME DESTINATION bin
- COMPONENT ${name})
- @@ -149,7 +142,6 @@ macro(add_clang_tool name)
- DEPENDS ${name}
- COMPONENT ${name})
- endif()
- - set_property(GLOBAL APPEND PROPERTY CLANG_EXPORTS ${name})
- endif()
- endmacro()
- diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
- index c0f90ba7068..77d4f9fe4b1 100644
- --- a/llvm/cmake/modules/AddLLVM.cmake
- +++ b/llvm/cmake/modules/AddLLVM.cmake
- @@ -881,14 +881,7 @@ macro(add_llvm_tool name)
- if ( ${name} IN_LIST LLVM_TOOLCHAIN_TOOLS OR NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
- if( LLVM_BUILD_TOOLS )
- - if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
- - NOT LLVM_DISTRIBUTION_COMPONENTS)
- - set(export_to_llvmexports EXPORT LLVMExports)
- - set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True)
- - endif()
- -
- install(TARGETS ${name}
- - ${export_to_llvmexports}
- RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
- COMPONENT ${name})
- @@ -899,9 +892,6 @@ macro(add_llvm_tool name)
- endif()
- endif()
- endif()
- - if( LLVM_BUILD_TOOLS )
- - set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
- - endif()
- set_target_properties(${name} PROPERTIES FOLDER "Tools")
- endmacro(add_llvm_tool name)
- diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
- index d1afcb42f9d..4684654daf9 100644
- --- a/llvm/cmake/modules/TableGen.cmake
- +++ b/llvm/cmake/modules/TableGen.cmake
- @@ -170,14 +170,7 @@ macro(add_tablegen target project)
- endif()
- if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
- - if(${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
- - NOT LLVM_DISTRIBUTION_COMPONENTS)
- - set(export_to_llvmexports EXPORT LLVMExports)
- - endif()
- -
- install(TARGETS ${target}
- - ${export_to_llvmexports}
- RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
- endif()
- - set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target})
- endmacro()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement