How All Your Codebase Packages C/C++ Projects for the Zig Build System
C/C++ projects packaged for Zig
We package C/C++ projects for the Zig build system to simplify compilation and cross-compilation. By replacing dependencies on Make, CMake, Clang, and system package managers, we offer a unified toolchain that eliminates the need for Docker or complex CI matrices. Maintainers are welcome to upstream our build scripts, helping their projects integrate seamlessly with Zig while reducing system-wide configuration requirements.
Zig is a complete build system that works on all supported platforms and can do everything those other tools do.
- pjmlp
This one is precious, they remove the dependency on clang, by shipping clang.
> Clang: Zig is a full compiler toolchain and happens to also bundle all of clang.
- jeremyjh
I just looked at one example...Wayland's meson.build is 142 LOC, but build.zig is 581.
https://github.com/allyourcodebase/wayland/blob/master/build...
https://github.com/wayland-mirror/wayland/blob/main/meson.bu...
- rtpg
I'm a bit worried this is intro'ing the classic problem we have in Bazel land, where everyone is having to show up with their own sort of packaging scripts etc instead of using upstream tooling one way or another.
I had the impression `zig` already has stuff like `zig cc`. Would... would `zig make` be an impossible proposition? Maybe that makes no sense.
- gracefulliberty
Both an excellent showcase of the Zig build system and a convenient way to use C libraries within Zig.
- Panzerschrek
Yet another attempt to fix the problem with 14 competing standards by introducing one more standard.
Now a C++ developer can face a problem, when he needs some thirdparty dependency and it requires Zig to be built.