<div dir="ltr">Can you verify that this doesn't turn on dead stripping for libclang.so (or it does, but also uses an export list to keep the actual libclang interface exported)? I can never remember whether the EXE flags are used for the plugin-style DSOs, or the library flags.<div>
<br></div><div>Anyways, looks good. We should definitely get this wired up for Linux.</div><div><br></div><div>Have you checked the other binary size reductions? I wonder why we didn't do this sooner.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Dec 27, 2013 at 12:42 AM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Now with the same change for cmake too.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 26, 2013 at 8:50 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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.</div>

<div><br></div>
<div>Ok?</div><span><font color="#888888"><div><br></div><div>Nico</div></font></span><div><br></div><div>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.</div>


</div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>