3 ms·
Sweet! By the way we just added FreeBSD to the download page on ziglang.org (as of today), so FreeBSD users can grab master branch builds automatically built by
by AndyKelley 1y ago
Sweet! By the way we just added FreeBSD to the download page on ziglang.org (as of today), so FreeBSD users can grab master branch builds automatically built by the CI.
It's also now a first-class supported cross-compilation target, including when linking libc, so you can do stuff like `zig cc -o hello hello.c -target riscv64-freebsd`.
And then of course if you have any C/C++ dependencies, you can fetch and build them with the zig build system, so it should be possible to easily cross-compile even quite complex projects for FreeBSD now.
Hopefully that helps more projects decide to add FreeBSD support and respective testing to their CI!
- xedrac 1y agoZig's cross compilation is awesome, and it's nice to see FreeBSD on the supported target list.
- int_19h 1y agoGiven that Zig has a BSD-friendly license and FreeBSD already ships LLVM in the base system, I wonder if Zig will also end up there one day. Would be nice to have an official blessed C replacement.