26 lines
972 B
Diff
26 lines
972 B
Diff
From 856b789b9de0895786ba23681c4337172676e01e Mon Sep 17 00:00:00 2001
|
|
From: Tom Stellard <tstellar@redhat.com>
|
|
Date: Fri, 31 Jan 2020 11:04:57 -0800
|
|
Subject: [PATCH] clang: Don't install static libraries
|
|
|
|
---
|
|
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
|
|
index cbd618e..9cf076a 100644
|
|
--- a/clang/cmake/modules/AddClang.cmake
|
|
+++ b/clang/cmake/modules/AddClang.cmake
|
|
@@ -97,7 +97,7 @@ macro(add_clang_library name)
|
|
if(TARGET ${name})
|
|
target_link_libraries(${name} 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))
|
|
set(export_to_clangtargets)
|
|
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
|
"clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
|
--
|
|
1.8.3.1
|
|
|