Thank you Andrew for all the work you've done on this! I'm very excited about being able to download zig and get the latest LLVM version AND be able to cross compile in a single go.
`zig cc` in some ways is now a better C compiler than clang/gcc. To me that's even crazier than everything else that is happening in the world right now.
Does not really look like a drop-in replacement for cc yet.
The zip-install-prefix path is not relative and unknown. It is not taken from the downloaded path. The linker and autotools integration does not work yet. But it almost works.
e.g. --disable-shared CC="zig cc --target=x86_64-linux-musl" LD=lld
I just published a blog post[2] about this. You can use `zig cc` in the place of `clang`, and it'll unlock cross compilation.
[1]: https://ziglang.org/download/
[2]: https://andrewkelley.me/post/zig-cc-powerful-drop-in-replace...