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

Nico Weber thakis at chromium.org
Thu Dec 26 20:50:41 PST 2013


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/c8e71493/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clangformat.patch
Type: application/octet-stream
Size: 388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131226/c8e71493/attachment.obj>


More information about the cfe-commits mailing list