[LLVMdev] Using thin archives when building llvm (original) (raw)

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jul 17 07:49:55 PDT 2015


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 non-installed archives?

Yes, the idea is to speed up a regular development build.

Is there any way to do that with cmake without having to have a hacked llvm-ar? All that is needed is for cmake to run

.../llvm-ar cqT foo.a .... instead of .../llvm-ar cq foo.a .... CMake has undocumented variables set by the Modules/Platform/* files to specify the rules for creating archives. These are: CMAKEARCHIVE{CREATE,APPEND,FINISH}

I went with this one on my run-cmake script, thanks.

Cheers, Rafael



More information about the llvm-dev mailing list