3 ms·
Historically the Linux kernel used GCC extensions that Clang did not support, and this is just a thin shim around the ordinary Clang frontend, so to the extent
by loeg 7y ago
Historically the Linux kernel used GCC extensions that Clang did not support, and this is just a thin shim around the ordinary Clang frontend, so to the extent that's still a problem: no.
Otherwise: yeah. It's just clang's main function with a different name slapped on. Linking semantics may differ slightly which could be problematic. But in theory, yes.
- yjftsjthsd-h 7y ago> so to the extent that's still a problem: no. Clang can apparently build a vanilla Linux kernel now, no gotchas, actively used by Google for its Linux things (Android, chromeos).
- ndesaulniers 7y agoYep, check out clangbuiltlinux.github.io for more info!
- loeg 7y agoGlad to hear it!