Closed Bug 1180370 Opened 9 years ago Closed 9 years ago

Use Clang as default compiler on Linux

Categories

(Firefox Build System :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1253064

People

(Reporter: cocof35serveur, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20150703030216
OS: Unspecified → Linux
Hardware: Unspecified → All
Summary: Build Firefox on Linux with Clang → Use Clang as default compiler on Linux
Attached file Clang Result Octane
Attached file GCC Result Octane
As you can see, Firefox build with clang is 0.95X slower than GCC version(almost inexistant difference betwen those two). Also clang has better diagnostic than gcc which make that you can fix bug easier. Finaly, clang compiler faster than gcc which take around 57 min to compile against clang which take 38min to compile whether around 2 times faster
I've just forgot one thing.If we'd switch to clang as default compiler we'd have from 3 to 2 different compiler
Component: Untriaged → Build Config
Your benchmarks lack the most interesting information: - what version of clang? - what version of gcc? - what mozconfig did you use? - is the gcc build one from mozilla continuous integration or one you did yourself? - if the former, what version? nightly? aurora? beta? release? - if the latter did you enable PGO/FDO? - did you enable PGO/FDO with clang?
GCC 5.1.0 Clang/LLVM 3.6 mozconfig: attached file version nighlty from mozilla-central i don't PGO/FDO so i don't belive it was enable. but i can build another one with this enabled with need to
Attached file mozconfig
* juste au cas ou je suis français et comme je n'ai pas un niveau très éleve en anglais...
This bug have not been updated for almost a month but i have a question. Why still use GCC when we can have a compiler that can do things better: better diagnostic, faster compilation, easier implementation with IDE and also a complete support of the API use with GCC ?
I didn't know about this bug when I just filed bug 1253064 :/ Normally I'd dupe to the older bug. However, I sent out a mailing list post linking to the new bug. So duping to the new one. Congratulations on being several months ahead of us on this proposal :) Also, we're likely not going to switch automation builds from GCC as part of bug 1253064. If Clang pans out, we'll consider it.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: