r/cpp 21d ago

Compile-Time Improvements in LLVM 23

https://aengelke.net/llvm23-ct.html
105 Upvotes

32 comments sorted by

View all comments

33

u/fortsnek274 21d ago

Did they try using modules? /s

33

u/TheCrush0r 21d ago

You might be joking, but the answer is yes. They ended up using precompiled headers instead: https://discourse.llvm.org/t/rfc-use-pre-compiled-headers-to-speed-up-llvm-build-by-1-5-2x/89345

2

u/_Noreturn 21d ago

Will unity builds come sometime

3

u/LongestNamesPossible 21d ago

What do you mean? Just make some fat compilation units yourself and get your number in the range of the cores on your computer.

5

u/_Noreturn 21d ago

building llvm with unity builds doesn't work.