2 ms·
And that was a project that took years: https://lwn.net/Articles/734071/ https://lwn.net/Articles/734071/
by mrpippy 8y ago
And that was a project that took years:
https://lwn.net/Articles/734071/ https://lwn.net/Articles/734071/
- cesarb 8y agoAnd is still not finished. The Linux kernel now requires the "asm goto" extension, which clang doesn't have (see https://lwn.net/Articles/748074/ https://lwn.net/Articles/748074/ and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e501ce957a786ecd076ea0cfb10b114e6e4d0f40 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...). If you check the GCC version defines (__GNUC__ and friends), you'll see that clang claims to be compatible with GCC 4.2.1, while "asm goto" was introduced later, with GCC 4.5. The tracking bug for compiling the Linux kernel with clang is https://bugs.llvm.org/show_bug.cgi?id=4068 https://bugs.llvm.org/show_bug.cgi?id=4068, in case you want to follow their progress.
- pjmlp 8y agoIt is finished on Android's source tree. https://source.android.com/setup/build/requirements https://source.android.com/setup/build/requirements As of Android 8, only clang is used.