News for hackers. Stuff that matters.
Re:Common Misconceptions about Compilers by almostgotcaught on Thursday December 12, 2024 @04:20AM (#42397597)
> good chunk of LLVM build time

Nah no way it's more than 5%. 5% is definitely a chunk but not big enough that if you made it completely vanish I'd notice. I rebuild LLVM with no cache many times a day (debug, release, all targets, no targets, etc). Debug build takes longer because of all the symbols - LLVM has some enormous symbols due to templating hijinks.

Protips for speeding up building LLVM:

1. LLVM_TARGETS_TO_BUILD=host

2. LLVM_ENABLE_PROJECTS only what you're interested in (do you really care about lld or flang whatever?)

3. Use clang/lld instead of gcc - way better RAM usage

4. Use ccache

4. Disable tests

There are no comments on this comment yet.