Magellan Linux

Contents of /trunk/llvm/patches/clang-15.0.7-linker-wrapper-tool.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3753 - (show annotations) (download)
Fri Aug 4 08:32:09 2023 UTC (9 months, 1 week ago) by niro
File size: 1412 byte(s)
-llcm/clang patches for 15.0.7
1 From c2aabcfc8395ba30884dd3c1ecc2b192ae85a78d Mon Sep 17 00:00:00 2001
2 From: Evangelos Foutras <https://foutrelis.com/>
3 Date: Mon, 13 Mar 2023 12:40:26 -0500
4 Subject: [PATCH] [LinkerWrapper] Switch to add_clang_tool() macro
5
6 Summary:
7 This creates install-clang-linker-wrapper{,-stripped} targets which are
8 useful for Linux distro builds when using LLVM_DISTRIBUTION_COMPONENTS.
9
10 Fixes: https://bugs.archlinux.org/task/77814
11
12 Differential Revision: https://reviews.llvm.org/D145862
13 ---
14 clang/tools/clang-linker-wrapper/CMakeLists.txt | 6 +-----
15 1 file changed, 1 insertion(+), 5 deletions(-)
16
17 diff --git a/clang/tools/clang-linker-wrapper/CMakeLists.txt b/clang/tools/clang-linker-wrapper/CMakeLists.txt
18 index b5f1c0dd0e7d33..198dbff8cf83c6 100644
19 --- a/clang/tools/clang-linker-wrapper/CMakeLists.txt
20 +++ b/clang/tools/clang-linker-wrapper/CMakeLists.txt
21 @@ -1,5 +1,3 @@
22 -include(GNUInstallDirs)
23 -
24 set(LLVM_LINK_COMPONENTS
25 ${LLVM_TARGETS_TO_BUILD}
26 BitWriter
27 @@ -27,7 +25,7 @@ if(NOT CLANG_BUILT_STANDALONE)
28 set(tablegen_deps intrinsics_gen LinkerWrapperOpts)
29 endif()
30
31 -add_clang_executable(clang-linker-wrapper
32 +add_clang_tool(clang-linker-wrapper
33 ClangLinkerWrapper.cpp
34 OffloadWrapper.cpp
35
36 @@ -43,5 +41,3 @@ target_link_libraries(clang-linker-wrapper
37 PRIVATE
38 ${CLANG_LINKER_WRAPPER_LIB_DEPS}
39 )
40 -
41 -install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")