search for: _create_static_library

Displaying 4 results from an estimated 4 matches for "_create_static_library".

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 using ninja for windows too. > > Where does lld-link2 get chosen? CMake doesn'...
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 17
2
[LLVMdev] Using thin archives when building llvm
...gt; 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 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. Cheers, Rafael
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. > > Will thin a...