Re:Using Zig's translate-C to understand weird C code
by 10000truths on Thursday November 04, 2021 @02:59AM
(#29104203)
That doesn’t make those tools part of the C standard, though. The standard does not mandate the use of any particular build tool for C projects beyond a conformant C compiler. There is nothing stopping me from using meson, ninja, bazel, a Frankenstein shell script, etc. to build a C project. Hell, there is nothing stopping me from using make to build non-C projects - it was designed as a generic dependency resolution tool.
[ Parent
| on HN ]
Re:Using Zig's translate-C to understand weird C code
by nicoburns on Thursday November 04, 2021 @06:21AM
(#29105319)
> There is nothing stopping me from using meson, ninja, bazel, a Frankenstein shell script, etc. to build a C project
There is if you intend to use libraries as those libraries may well have chosen a build system other than the one you have chosen meaning you'd have to rewrite their build scripts. This is far from the experience of using libraries in languages with unified build systems which is typically as simple as adding a line with the version of the library you want to a manifest file.