4 ms·
> clang cross compilation is not really any harder, you just supply the -target flag. Yes, but it doesn't bundle and automatically compile the appropriate C li
by messe 5y ago
> clang cross compilation is not really any harder, you just supply the -target flag.
Yes, but it doesn't bundle and automatically compile the appropriate C library for the platform. Zig does.
- dleslie 5y agoIt can, if the package manager bundles it that way. Instead, clang is usually packaged and distributed as cross-compilation variants; because most of the time users don't need all of the different possible targets, they just want one or two.
- klyrs 5y agoThe benefit here is that zig is batteries-included. The fact that you can drive to the store and buy batteries if you need them is missing the point.