3 ms·
In principle, clang could do it, you're right. I think there are two main reasons why it hasn't. First, Zig has a pretty unique and impressive build&caching sy
by azakai 5y ago
In principle, clang could do it, you're right. I think there are two main reasons why it hasn't.
First, Zig has a pretty unique and impressive build&caching system. It makes something like this a lot less painful than it would be otherwise. It makes it practical to just download a 40MB tarball and get full cross-compiling from it.
Second, clang itself isn't in the business of building a distribution of itself + third-party libraries. Usually developers using clang get such libraries from their "vendor" (package manager if on a Linux distro, Apple if on MacOS, etc.). And those vendors naturally focus on their own platforms. So Zig ended up the first to really do the work to build a cross-platform C/C++ toolchain.