summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvangelos Foutras <https://foutrelis.com/>2023-03-13 12:40:26 -0500
committerTobias Hieta <tobias@hieta.se>2023-04-14 08:35:54 +0200
commit74e76ab7b6f8b2847521950f31d56bcaedc1678d (patch)
treea6aba78cfe025f43ff427182201d7b6d84496e1a
parent02aa966c135172885182ddd6f5d76883c2402bed (diff)
downloadllvm-74e76ab7b6f8b2847521950f31d56bcaedc1678d.tar.gz
[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)
-rw-r--r--clang/tools/clang-linker-wrapper/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/tools/clang-linker-wrapper/CMakeLists.txt b/clang/tools/clang-linker-wrapper/CMakeLists.txt
index 8ddfcc6c59d3..cf0774c8c6c8 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}")