4 ms·
does firefox use llvm to compile ?
by mugivarra69 6y ago
does firefox use llvm to compile ?
- sylvestre 6y agoYeah, clang for all platforms for a couple years now
- vetinari 6y agoSome Linux distributions, like Fedora, build their Firefox binary with gcc.
- sylvestre 6y agoYeah but this will probably change too.
- Vogtinator 6y agoI hope not, we need diversity. (Yes, also more rust compilers)
- sylvestre 6y agoWe will still have jobs to build Firefox with gcc and gcc is not going anywhere in general: the % of package built with clang in Debian/Ubuntu is a fraction compared to gcc. Nathan Froyd wrote this great blog post about compiler usage: https://blog.mozilla.org/nfroyd/2018/05/29/when-implementation-monoculture-right-thing/ https://blog.mozilla.org/nfroyd/2018/05/29/when-implementati...
- gspr 6y agoYes. There are essential Rust components in Firefox, and the only serious Rust compiler uses LLVM. (This has nothing to do with clang as someone else suggests)
- floatboth 6y ago"does firefox use llvm to compile" is a very weird question that can be interpreted in a variety of ways :D Seems your interpretation is "does Firefox require any LLVM based compiler to compile?" and yeah. But "does Mozilla use clang for official builds?" is another valid way to parse the question. (Mozilla does use clang, and they even do cross-language LTO thanks to that: https://blog.llvm.org/2019/09/closing-gap-cross-language-lto-between.html https://blog.llvm.org/2019/09/closing-gap-cross-language-lto...)