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.
Anyways, looks good. We should definitely get this wired up for Linux. Have you checked the other binary size reductions? I wonder why we didn't do this sooner. On Fri, Dec 27, 2013 at 12:42 AM, Nico Weber <[email protected]> wrote: > Now with the same change for cmake too. > > > On Thu, Dec 26, 2013 at 8:50 PM, Nico Weber <[email protected]> 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. >> > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
