Blame SOURCES/0003-PATCH-clang-Don-t-install-static-libraries.patch

c67ce2
From 88704fc2eabb9dd19a9c3eb81a9b3dc37d95651c Mon Sep 17 00:00:00 2001
a1287a
From: Tom Stellard <tstellar@redhat.com>
a1287a
Date: Fri, 31 Jan 2020 11:04:57 -0800
c67ce2
Subject: [PATCH][clang] Don't install static libraries
a1287a
a1287a
---
a1287a
 clang/cmake/modules/AddClang.cmake | 2 +-
a1287a
 1 file changed, 1 insertion(+), 1 deletion(-)
a1287a
a1287a
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
c67ce2
index 5752f4277444..0f52822d91f0 100644
a1287a
--- a/clang/cmake/modules/AddClang.cmake
a1287a
+++ b/clang/cmake/modules/AddClang.cmake
c67ce2
@@ -113,7 +113,7 @@ macro(add_clang_library name)
a1287a
     if(TARGET ${lib})
a1287a
       target_link_libraries(${lib} INTERFACE ${LLVM_COMMON_LIBS})
a1287a
 
a1287a
-      if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)
a1287a
+      if (ARG_SHARED AND (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN))
c67ce2
         get_target_export_arg(${name} Clang export_to_clangtargets UMBRELLA clang-libraries)
c67ce2
         install(TARGETS ${lib}
c67ce2
           COMPONENT ${lib}
a1287a
-- 
c67ce2
2.30.2
a1287a