llvm-project/llvm/cmake
Alexander Shaposhnikov 2d3ae6f484 [cmake] Enable users to specify archive creation commands
This diff enables users to override CMAKE_C_ARCHIVE_CREATE & CMAKE_CXX_ARCHIVE_CREATE
(currently set in HandleLLVMOptions.cmake).

For example, one can specify
cmake -DCMAKE_C_ARCHIVE_CREATE="<CMAKE_AR> TDqc <TARGET> <LINK_FLAGS> <OBJECTS>" \
      -DCMAKE_CXX_ARCHIVE_CREATE="<CMAKE_AR> TDqc <TARGET> <LINK_FLAGS> <OBJECTS>" ...
to make the build create thin archives instead of regular ones.
For a clean run `ninja lld` using thin archives seems to reduce the size
of the build directory from ~14GB to ~8GB

Differential revision: https://reviews.llvm.org/D116850
2022-01-10 18:53:40 +00:00
..
modules [cmake] Enable users to specify archive creation commands 2022-01-10 18:53:40 +00:00
platforms [CMake][WinMsvc] Fix user passed compiler/linker flags 2022-01-07 16:34:56 -08:00
README
config-ix.cmake [Support] Revert posix_fallocate in resize_file 2021-12-20 11:16:03 -08:00
config.guess
dummy.cpp
nsis_icon.ico
nsis_logo.bmp
unwind.h [ExecutionEngine] Check for libunwind before calling __register_frame 2021-08-15 13:35:53 +01:00

README

See docs/CMake.html for instructions on how to build LLVM with CMake.