search for: cmake_cxx_create_static_librari

Displaying 6 results from an estimated 6 matches for "cmake_cxx_create_static_librari".

2015 Jul 17
2
[LLVMdev] Using thin archives when building llvm
> CMake has undocumented variables set by the Modules/Platform/* > files to specify the rules for creating archives. These are: > > CMAKE_<LANG>_ARCHIVE_{CREATE,APPEND,FINISH} > > for creating, appending to, and finishing an archive. For > tools/platforms that do not support separate steps we also > have: > > CMAKE_<LANG>_CREATE_STATIC_LIBRARY Setting
2015 Jul 20
2
[LLVMdev] Using thin archives when building llvm
On 20 July 2015 at 09:00, Brad King <brad.king at kitware.com> wrote: > On 07/17/2015 02:44 PM, Rafael Espíndola wrote: >> Setting CMAKE_CXX_CREATE_STATIC_LIBRARY works on OS X and linux, but >> on windows I still see a call to "lld-link2 /lib..." when >> CMAKE_CXX_CREATE_STATIC_LIBRARY is set to use llvm-lib. > > What CMake generator are you using on
2015 Jul 22
2
[LLVMdev] Using thin archives when building llvm
On 20 July 2015 at 10:53, Brad King <brad.king at kitware.com> wrote: > On 07/20/2015 10:48 AM, Rafael Espíndola wrote: >>>> Setting CMAKE_CXX_CREATE_STATIC_LIBRARY works on OS X and linux, but >>>> on windows I still see a call to "lld-link2 /lib..." when >>>> CMAKE_CXX_CREATE_STATIC_LIBRARY is set to use llvm-lib. >> >> I was
2015 Jul 16
5
[LLVMdev] Using thin archives when building llvm
I have just committed support to llvm-ar for creating thin archives. The idea of thin archives is that they contain just the symbol table and the path to find the original .o files. By locally making thin archives the default I was able to build llvm+lld+clang with them. The total size of the .a files goes from 181,658,164 to 7,116,900 bytes. Is there any way to do that with cmake without having
2015 Jul 22
2
[LLVMdev] Using thin archives when building llvm
> The Modules/Platform/Windows-MSVC.cmake module unconditionally > sets CMAKE_CXX_CREATE_STATIC_LIBRARY and uses CMAKE_LINKER. > As mentioned earlier the CMAKE_<LANG>_CREATE_STATIC_LIBRARY > and similar variables are internal implementation details > that are not meant to be set by users or project code. That > is why the above works only on certain platforms. > >
2015 Jul 17
2
[LLVMdev] Using thin archives when building llvm
On 17 July 2015 at 07:19, Brad King <brad.king at kitware.com> wrote: > On 07/15/2015 09:00 PM, Rafael Espíndola wrote: >> I have just committed support to llvm-ar for creating thin archives. >> The idea of thin archives is that they contain just the symbol table >> and the path to find the original .o files. > > Neat! Is this expected to be used only for