1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/community/llvm19/LLD-add-build-shared-libs-option.patch
Celeste cc67b2a0ed community/llvm19: include clang and lld in projects to build
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld"

also, sort Contributors by last name
2025-07-09 03:42:38 +00:00

23 lines
637 B
Diff

--- a/lld/CMakeLists.txt
+++ b/lld/CMakeLists.txt
@@ -161,6 +161,9 @@ if (LLD_USE_VTUNE)
endif()
endif()
+option(LLD_BUILD_SHARED_LIBS
+ "Build lld libraries as shared libraries instead of static" OFF)
+
option(LLD_BUILD_TOOLS
"Build the lld tools. If OFF, just generate build targets." ON)
--- a/lld/cmake/modules/AddLLD.cmake
+++ b/lld/cmake/modules/AddLLD.cmake
@@ -7,7 +7,7 @@ macro(add_lld_library name)
""
""
${ARGN})
- if(ARG_SHARED)
+ if( LLD_BUILD_SHARED_LIBS OR ARG_SHARED )
set(ARG_ENABLE_SHARED SHARED)
endif()
llvm_add_library(${name} ${ARG_ENABLE_SHARED} ${ARG_UNPARSED_ARGUMENTS})