[LLVMdev] Compressing with llvm-ar

Michael Spencer bigcheesegs at gmail.com
Thu Aug 9 10:01:22 PDT 2012


On Mon, Jul 30, 2012 at 8:15 PM, Martinez, Javier E
<javier.e.martinez at intel.com> wrote:
> Hello,
>
>
>
> The documentation for llvm-ar says that option ‘z’ is used to compressed a
> file before archiving it. I did some tests with different input files (text
> and LLVM bitcode) and found the archive to be about the same size as the
> input. When debugging I found that the compressed flag gets passed to
> several calls and eventually makes it to Archive::writeMember() but this
> function doesn’t do anything with it.
>
>
>
> Is compression working with llvm-ar? Can someone provide an example of how
> to use it? My command line looks something like llvm-ar rcz [archive_name]
> [input_file]
>
>
>
> Thanks,
>
> Javier

llvm-ar cannot do compression.

- Michael Spencer




More information about the llvm-dev mailing list