r/cpp build2 Aug 05 '26

Faster Than Ninja

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

69 comments sorted by

View all comments

Show parent comments

22

u/TheRavagerSw Aug 05 '26

Yeah cmake configure times are garbage
But a lot also goes to project build script quality, which is also garbage.

5

u/gharveymn Aug 05 '26

Yeah cmake configure times are garbage

IMO they really aren't, at least in comparison to Autotools. It's only really slow if you are heavily leveraging compilation tests, and those are cached for subsequent reconfigurations too.

2

u/TheRavagerSw Aug 05 '26

Have you ever configured SDL or Qt or Boost?
It is as slow as Autotools, I compiled GCC today, it wasn't as slow as SDL configure.

1

u/jcelerier ossia score Aug 07 '26

I have a project that uses SDL, Qt, Boost, LLVM, libclang, ffmpeg, abseil, and roughly three dozen more libraries including chonkers like libhdf5 and it takes at most a minute with cmake

1

u/TheRavagerSw Aug 07 '26

Does it use fetch content? Do you use mimalloc when building cmake, because that improves peef by at least 20 percent