3 ms·
It's basically an artifact of how GCC works. LLVM is a library that happens to have Clang in front of it, whereas GCC still isn't really able to have multiple
by mhh__ 5y ago
It's basically an artifact of how GCC works.
LLVM is a library that happens to have Clang in front of it, whereas GCC still isn't really able to have multiple targets in the same binary.
Could probably be done but for actually assembling toolchains you generally only need one anyway so it's not that annoying most of the time.
- nicoburns 5y ago> but for actually assembling toolchains you generally only need one Not if you intend to ship on multiple platforms. Having to run builds on the native platform or install a separate cross-compilation toolchain is incredibly annoying (and difficult to get right to the point that it's common to not even try). It would be a big usability win if C toolchains could get cross-compilation to Go or Zig levels of "just works".
- mhh__ 5y agoSure but sometimes you need to get your hands on system libraries, C headers, linkers etc.