Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Staging:E
llvm5
llvm-do-not-install-static-libraries.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File llvm-do-not-install-static-libraries.patch of Package llvm5
This has similar effect as simply deleting the static libraries which we don't want after installation. By not copying them in the first place we reduce the disk usage during installation. Index: llvm-5.0.1.src/cmake/modules/AddLLVM.cmake =================================================================== --- llvm-5.0.1.src.orig/cmake/modules/AddLLVM.cmake +++ llvm-5.0.1.src/cmake/modules/AddLLVM.cmake @@ -611,10 +611,19 @@ macro(add_llvm_library name) set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True) endif() - install(TARGETS ${name} - ${export_to_llvmexports} - ${install_type} DESTINATION ${install_dir} - COMPONENT ${name}) + if(ARG_SHARED) + install(TARGETS ${name} + ${export_to_llvmexports} + ${install_type} DESTINATION ${install_dir} + COMPONENT ${name}) + else() + if(NOT LLVM_BUILD_LLVM_DYLIB) + install(TARGETS ${name} + ${export_to_llvmexports} + ${install_type} DESTINATION ${install_dir} + COMPONENT ${name}) + endif() + endif() if (NOT CMAKE_CONFIGURATION_TYPES) add_custom_target(install-${name} Index: llvm-5.0.1.src/lld-5.0.1.src/cmake/modules/AddLLD.cmake =================================================================== --- llvm-5.0.1.src.orig/lld-5.0.1.src/cmake/modules/AddLLD.cmake +++ llvm-5.0.1.src/lld-5.0.1.src/cmake/modules/AddLLD.cmake @@ -17,13 +17,6 @@ macro(add_lld_library name) set_property(GLOBAL PROPERTY LLD_HAS_EXPORTS True) endif() - install(TARGETS ${name} - COMPONENT ${name} - ${export_to_lldtargets} - LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} - RUNTIME DESTINATION bin) - if (${ARG_SHARED} AND NOT CMAKE_CONFIGURATION_TYPES) add_custom_target(install-${name} DEPENDS ${name} Index: llvm-5.0.1.src/lldb-5.0.1.src/cmake/modules/AddLLDB.cmake =================================================================== --- llvm-5.0.1.src.orig/lldb-5.0.1.src/cmake/modules/AddLLDB.cmake +++ llvm-5.0.1.src/lldb-5.0.1.src/cmake/modules/AddLLDB.cmake @@ -58,10 +58,12 @@ function(add_lldb_library name) LIBRARY DESTINATION ${out_dir} ARCHIVE DESTINATION ${out_dir}) else() - install(TARGETS ${name} - COMPONENT ${name} - LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + if(NOT LLVM_BUILD_LLVM_DYLIB) + install(TARGETS ${name} + COMPONENT ${name} + LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} + ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + endif() endif() if (NOT CMAKE_CONFIGURATION_TYPES) add_custom_target(install-${name}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor