On 3 March 2016 at 00:13, Martin Thomson <m...@mozilla.com> wrote: > On Thu, Mar 3, 2016 at 10:45 AM, Mike Hommey <m...@glandium.org> wrote: >> More importantly, changing the official toolchain has implications on >> performance. > > Without any real evidence for this, I'm told that GCC still produces > better (i.e., faster) output. But we could switch try builds to clang > if the time savings are that good.
That was the case last time I heard of someone looking into it, but this was a few years ago and quite possibly warrants a new investigation. The time savings of compiling on clang vs. gcc are significant. On my machine, with a populated ccache, it shaves off four-five minutes for a clobber build, totalling roughly nine minutes in total, compared to 14 minutes with gcc. I’ve been compiling with clang for two years, and one caveat if you’re using Debian stable (and possibly still Ubuntu) is that you will need clang-3.4 instead of clang-3.5 because of https://bugzilla.mozilla.org/show_bug.cgi?id=1078370. This has apparently been fixed, but has not made it downstream. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform