r/cpp • build2 • Aug 05 '26

Faster Than Ninja

https://build2.org/blog/faster-than-ninja.xhtml
63 Upvotes

69 comments sorted by

View all comments

Show parent comment

4

u/playmer Aug 05 '26

They’re checks that have to be written by the projects. CMake doesn’t know what you might be checking for. SDL has a ton of checks because it supports an incredibly diverse set of targets and toolchains.

The biggest issue imo is that CMake forces these to be done serially. You can’t give it a bunch of checks at once for it to multithreaded for you.

2

u/helloiamsomeone Aug 05 '26

This is a problem that is on the issue tracker of CMake. Looks like someone started tackling it in the last month, but these kinds of problems require someone to sit down, design the feature, communicate with Kitware then implement it.

2

u/playmer Aug 05 '26

It’s good that it’s being tracked. At some point I looked into it a year or so ago and it seemed like it’d be a bear, though doable. I believe it ties into the machinery to run arbitrary tools at configure time (though I could be misremembering) and it’d probably be good to expose that as an operation that can run multiple things at once as well.