|
|
|
|
|
by messe
1739 days ago
|
|
> If someone wanted to package clang to do that, they could. They do, in fact, that's how clang cross compilation packages work. Clang doesn't bundle a C standard library implementation. > But sure, to Zig's credit, they ship all the supported toolchains and so don't have many different cross compilation variants in the OS's package manager. But that's a bit like buying one of everything, even though you'll only use one or two. Zig only bundles the sources, so it builds the C library on-demand. IIRC it's smaller than most cross compiler toolchains. |
|
... So? It can use most any you wish.
> Zig only bundles the sources, so it builds the C library on-demand.
Which it then caches, post-compilation, taking up binary space on disk comparable to if you just downloaded the pre-compiled target binaries.