cd /news/developer-tools/show-hn-ccbuild-a-c-build-system-whe… · home › topics › developer-tools › article
[ARTICLE · art-181397] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

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

An author going by ccbuild released ccbuild, a C++ build system in which build scripts are written in C++ rather than CMake's DSL or separate Python/Starlark scripts, and posted it to Hacker News as a Show HN. ccbuild uses ninja under the hood to create in-memory graph nodes directly without a parsing phase and then starts the build, giving developers the same compiler errors, type safety and IDE autocompletion as their application code. The author acknowledged using "my fair share of AI in building this" and said the project has compiled a few well-known popular C++ projects, framing the goal as needing nothing but a C++ compiler to build a C++ project.

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.

read1 min views5 publishedDec 3, 2026

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

── more in #developer-tools 4 stories · sorted by recency
── more on @ccbuild 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-ccbuild-a-c-…] indexed:0 read:1min 2026-12-03 · —