C/C++ projects packaged for Zig
jcbhmr
45 points
25 comments
July 27, 2026
Related Discussions
Found 5 related stories in 383.2ms across 15,062 title embeddings via pgvector HNSW
- Zig by Example dariubs · 217 pts · June 08, 2026 · 63% similar
- Zig: All Package Management Functionality Moved from Compiler to Build System tosh · 170 pts · July 04, 2026 · 63% similar
- Writing a C Compiler, in Zig (2025) tosh · 150 pts · April 23, 2026 · 63% similar
- Zig: Package Management Moved from Compiler to Build System olzhasar · 15 pts · July 02, 2026 · 62% similar
- Zig: Build System Reworked tosh · 338 pts · May 30, 2026 · 59% similar
Discussion Highlights (5 comments)
gracefulliberty
Both an excellent showcase of the Zig build system and a convenient way to use C libraries within Zig.
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.
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...
fuhsnn
These look more like configure snapshots for Zig's bundled Clang than full ports of build system. The HAVE_/WITH_ defines are supposed to be dynamically probed to adapt to different toolchain environments, setting them manually like that[1][2][3] could only work well for specific targets and for specific versions. [1] https://github.com/allyourcodebase/libxml2/blob/38fb69d375bc... [2] https://github.com/allyourcodebase/rnnoise/blob/47db9c212d7e... [3] https://github.com/allyourcodebase/wayland/blob/f992cd71e199...
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.