# Show HN: [ccbuild] A C++ build system where your build scripts are C++

> Source: <https://github.com/aniket-ray/ccbuild>
> Published: 2026-12-03 21:20:57+00:00

**Key takeaway:** ccbuild lets developers define build graphs in C++ itself, using ninja under the hood to create in-memory graph nodes directly and skip the parsing phase, so build scripts get the same compiler errors, type safety and IDE autocompletion as application code.

Hi HN, I'm the author of ccbuild.

I built this because I got tired of switching context between C++ and CMake's DSL (or maintaining separate Python/Starlark scripts) just to configure a project. Most C/C++ engineers at some point (myself included) have spent way too much time grabbing CMake snippets we only partly understand and doing trial-and-error until the build turns green.

Instead of debugging a separate DSL (specially text files for CMake/Make), you get the same compiler errors, type safety, and IDE autocompletion you already rely on for your application code.

ccbuild uses ninja purely under the hood to create the in-memory graph nodes directly without going through the parsing phase and starts the build. I will agree upfront that I have used my fair share of AI in building this and have compiled a few well-known popular C++ projects.

If C++ devs like the idea, please hit that star button on github - it will give me enough motivation to take it to the next level.

TL;DR: You should not need anything but a C++ compiler to build a C++ project.

Comments URL: [https://news.ycombinator.com/item?id=50752628](https://news.ycombinator.com/item?id=50752628)

Points: 1

# Comments: 0
