5 ms·
Not even remotely close. No major distribution uses the LLVM toolchain.
by unmole 9y ago
Not even remotely close. No major distribution uses the LLVM toolchain.
- shmerl 9y agoIf you are talking about the kernel itself, I think Debian did some work to support building Linux with clang. But last time I checked, it wasn't ready. See also: https://wiki.debian.org/llvm-clang https://wiki.debian.org/llvm-clang
- cyphar 9y agoDistributions compile more than just a kernel. That's just one of several thousand packages we build. Usually the problem (even with something as simple as PIC/ASLR) is that old projects might have problems compiling. We just switched openSUSE Tumbleweed to GCC7 a few months ago, and it was a very large amount of work. I can't imagine how much work it would take to switch to LLVM.
- DannyBee 9y agoCounterpoint: We compile more than one entire linux distribution (one is gentoo based, others vary) with llvm with essentially no issues (the number of local patches is incredibly small, and most is actually just buggy code that clang happens to detect, and we are waiting for upstream to accept). Is it work? Sure. But it's not like "years of real work". It's about 5-10 people for a quarter or two.
- cyphar 9y agoIt is definitely possible, but I was saying that switching to LLVM would take a while, and that even GCC updates are painful. 5-10 people for 6 months is a fairly serious time investment for a community project (especially since we have a lot of other things on our plate).
- ktta 9y agoThere are efforts for the kernel itself too. http://llvm.linuxfoundation.org/index.php/Main_Page http://llvm.linuxfoundation.org/index.php/Main_Page