[patch] Reduce size of clang-format by 87% on OS X

Nico Weber thakis at chromium.org
Thu Dec 26 21:42:49 PST 2013


Now with the same change for cmake too.


On Thu, Dec 26, 2013 at 8:50 PM, Nico Weber <thakis at chromium.org> wrote:

> Hi,
>
> the attached patch turns on link-time dead code stripping for
> clang-format, with the configure/make build. This reduces the size of
> clang-format from 13MB to 1.6MB.
>
> Ok?
>
> Nico
>
> ps: The equivalent on linux is I think compiling with -ffunction-sections
> -fdata-sections and linking with -Wl,-gc-sections, but I don't have access
> to a linux box to try this at the moment.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131226/c5a9791d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clangformat.patch
Type: application/octet-stream
Size: 945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131226/c5a9791d/attachment.obj>


More information about the cfe-commits mailing list