by gpanders · 4y ago · 0 comments
With Zig, that all goes away. It’s as simple as saying `zig build -Dtarget=aarch64-linux-gnu` or `zig build -Dtarget=riscv32-freestanding-none` and it just works. It’s pretty incredible.
Zig has set the bar for how cross compilation should be done and all other languages should be measured against it. Rust is close but is still a headache. The only other language that compares at the moment (IMO) is Go.
What about Zig would you say makes it better? Rust has `cargo build --target <triple>`
I certainly agree that Rust is much better than C/C++, but it’s not quite at Zig level, at least in my (limited) experience.