[webkit-gtk] Why does it take sooo long to compile

ChangSeok Oh changseok.oh at collabora.com
Tue Feb 10 19:52:21 PST 2015

This is useful info enough to give a shot.
Thanks for asking and answering. ;)


On 02/11/2015 01:59 AM, Michael Catanzaro wrote:
> On Mon, Feb 9, 2015 at 8:01 PM, frank ernest <doark at mail.com> wrote:
>> NO, this is NOT a complaint! I'm asking why it takes 3.5 to 4.5 hours 
>> to compile.
> Yeah that's normal. A couple tips:
> * -O0 actually makes it take slightly longer to compile on my machine 
> (no, I don't understand why) but the difference is not significant. 
> You might as well use -O2.
> * Make sure you are not including any debug info if you want things to 
> go fast. -g should not be present in CXXFLAGS. If you're currently 
> using -g, then removing it will speed things up dramatically.
> * Switching from ld.bfd to ld.gold will speed things up dramatically 
> if you're doing a debug build (with -g). I don't remember how much 
> faster it is for non-debug builds, but I would guess the difference is 
> significant.
> * Switching from GCC 4.8 to Clang 3.4 made non-debug builds go ~15% 
> faster for me. This probably depends a lot on the specific compiler 
> version, though. Upgrading from Fedora 20 (with GCC 4.8) to Fedora 21 
> (GCC 4.9) caused my build time to increase by >20%, which was sad.
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20150211/4cb18069/attachment.html>

More information about the webkit-gtk mailing list