3 ms·
Not familiar with C compiling besides a few small programs I wrote back in college but can Linux not be compiled currently with LLVM?
by slimginz 5y ago
Not familiar with C compiling besides a few small programs I wrote back in college but can Linux not be compiled currently with LLVM?
- gpm 5y agoLinux can be compiled with LLVM (clang), and the current rust code strongly prefers that you do so. It's possible to do gcc + rustc, but it's less supported, and if you pass the wrong gcc flags I believe it just won't work.
- edgyquant 5y agoIt can, but up until just a couple of years ago it could not as it used a lot of GCC specific syntax
- cesarb 5y ago> until just a couple of years ago it could not as it used a lot of GCC specific syntax Note that the kernel still uses a lot of GCC specific syntax; it's just that LLVM/clang was laboriously made to understand all of that (with a few exceptions where the kernel was changed instead). And when they were almost done, the kernel started requiring another new GCC specific syntax, so they had to chase after that too.