4 ms·
In my experience, `zig cc` is great at cross-compiling (which is a hard problem that it solves!) but doesn't actually help with the rest of the problem. You st
by ddulaney 2y ago
In my experience, `zig cc` is great at cross-compiling (which is a hard problem that it solves!) but doesn't actually help with the rest of the problem.
You still have to run cmake/autoconf/meson/whatever else, which is the part that's project-specific and often quite fiddly.
- lifthrasiir 2y agoThis has been my experience as well. I previously used cargo-zigbuild for packaging at work (and contributed both to cargo-zigbuild and Zig as a byproduct), and I still had several troubles that I had to analyze and tackle in spite of them.
- kristoff_it 2y agoWell if you're limiting yourself to zig cc, then all you get is a C compiler. If you take the time to kick out of your project that soup of build systems and replace them with a build.zig, then you got yourself a complete solution. Takes some effort but it's perfectly doable, see https://github.com/allyourcodebase https://github.com/allyourcodebase