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

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