Fedora Looks To Build Firefox With Clang For Better Performance & Compilation Speed

Written by Michael Larabel in Fedora on 11 December 2018 at 06:16 AM EST. 26 Comments
FEDORA
Following the move by upstream Mozilla in switching their Linux builds of Firefox from being compiled by GCC to LLVM Clang, Fedora is planning the same transition of compilers in the name of compilation speed and resulting performance.

FESCo Ticket 2020 laid out the case, "Mozilla upstream switches from gcc to clang and we're going to follow upstream here due to clang performance, maintenance costs and compilation speed. Tom Stellard (clang maintainer) has asked me to file this ticket to comply with Fedora processes."

Fedora's Engineering and Steering Committee approved the plan during their Monday meeting to allow the official Fedora packages of Firefox to be built by Clang rather than GCC. As far as I know, the rest of the Fedora package set is compiled by the GNU Compiler Collection.

Firefox developers have increasingly been utilizing LLVM/Clang for faster compilation speed as well as the resulting binary performance, lower memory usage during the build process, etc. In response to the FESCO ticket, some have questioned why Firefox is allowed the compiler exception in Fedora, if Clang is better than GCC why don't they allow more packages to build with Clang, and also a belief GCC + LTO/PGO would be better than Clang. For at least now though, the Fedora package of Firefox is allowed to build with Clang.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week