clang/SOURCES/0006-Don-t-install-static-libraries.patch

26 lines
966 B
Diff
Raw Normal View History

2023-03-28 09:52:03 +00:00
From 6e0c48576740a1da9abeecfb8070127b8e91ab73 Mon Sep 17 00:00:00 2001
2021-11-03 04:17:02 +00:00
From: Tom Stellard <tstellar@redhat.com>
Date: Fri, 31 Jan 2020 11:04:57 -0800
2023-03-28 09:52:03 +00:00
Subject: Don't install static libraries
2021-11-03 04:17:02 +00:00
---
clang/cmake/modules/AddClang.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
2023-03-28 09:52:03 +00:00
index 21ac332e4f5f..d0cf20cced21 100644
2021-11-03 04:17:02 +00:00
--- a/clang/cmake/modules/AddClang.cmake
+++ b/clang/cmake/modules/AddClang.cmake
2023-03-28 09:52:03 +00:00
@@ -114,7 +114,7 @@ macro(add_clang_library name)
2021-11-03 04:17:02 +00:00
if(TARGET ${lib})
target_link_libraries(${lib} INTERFACE ${LLVM_COMMON_LIBS})
- if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)
+ if (ARG_SHARED AND (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN))
2021-12-07 18:02:16 +00:00
get_target_export_arg(${name} Clang export_to_clangtargets UMBRELLA clang-libraries)
install(TARGETS ${lib}
COMPONENT ${lib}
2021-11-03 04:17:02 +00:00
--
2023-03-28 09:52:03 +00:00
2.37.1
2021-11-03 04:17:02 +00:00