Author: Evangelos Foutras Date: 2023-04-14T08:35:54+02:00 New Revision: 74e76ab7b6f8b2847521950f31d56bcaedc1678d
URL: https://github.com/llvm/llvm-project/commit/74e76ab7b6f8b2847521950f31d56bcaedc1678d DIFF: https://github.com/llvm/llvm-project/commit/74e76ab7b6f8b2847521950f31d56bcaedc1678d.diff LOG: [LinkerWrapper] Switch to add_clang_tool() macro Summary: This creates install-clang-linker-wrapper{,-stripped} targets which are useful for Linux distro builds when using LLVM_DISTRIBUTION_COMPONENTS. Fixes: https://bugs.archlinux.org/task/77814 Differential Revision: https://reviews.llvm.org/D145862 (cherry picked from commit c2aabcfc8395ba30884dd3c1ecc2b192ae85a78d) Added: Modified: clang/tools/clang-linker-wrapper/CMakeLists.txt Removed: ################################################################################ diff --git a/clang/tools/clang-linker-wrapper/CMakeLists.txt b/clang/tools/clang-linker-wrapper/CMakeLists.txt index 8ddfcc6c59d35..cf0774c8c6c83 100644 --- a/clang/tools/clang-linker-wrapper/CMakeLists.txt +++ b/clang/tools/clang-linker-wrapper/CMakeLists.txt @@ -1,5 +1,3 @@ -include(GNUInstallDirs) - set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} BitWriter @@ -27,7 +25,7 @@ if(NOT CLANG_BUILT_STANDALONE) set(tablegen_deps intrinsics_gen LinkerWrapperOpts) endif() -add_clang_executable(clang-linker-wrapper +add_clang_tool(clang-linker-wrapper ClangLinkerWrapper.cpp OffloadWrapper.cpp @@ -45,5 +43,3 @@ target_link_libraries(clang-linker-wrapper PRIVATE ${CLANG_LINKER_WRAPPER_LIB_DEPS} ) - -install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits