[llvm-branch-commits] [clang] 71f281e - [PATCH] Don't install static libraries

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 3 01:15:49 PDT 2022


Author: Tom Stellard
Date: 2022-05-03T10:05:28+02:00
New Revision: 71f281ee2bbdeb12bf8cd9e435edc824e24a05e4

URL: https://github.com/llvm/llvm-project/commit/71f281ee2bbdeb12bf8cd9e435edc824e24a05e4
DIFF: https://github.com/llvm/llvm-project/commit/71f281ee2bbdeb12bf8cd9e435edc824e24a05e4.diff

LOG: [PATCH] Don't install static libraries

Added: 
    

Modified: 
    clang/cmake/modules/AddClang.cmake

Removed: 
    


################################################################################
diff  --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
index 9bbbfc032b7df..dd611c0cf164d 100644
--- a/clang/cmake/modules/AddClang.cmake
+++ b/clang/cmake/modules/AddClang.cmake
@@ -114,7 +114,7 @@ macro(add_clang_library name)
     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))
         get_target_export_arg(${name} Clang export_to_clangtargets UMBRELLA clang-libraries)
         install(TARGETS ${lib}
           COMPONENT ${lib}


        


More information about the llvm-branch-commits mailing list