Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!



Zig's cross compilation is awesome, and it's nice to see FreeBSD on the supported target list.


Given 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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: