I’ve disabled LTO, how much time is normal for LLD to link clang/llvm it’s self?
Seems like a bug, when I disabled LTO, the compile speed is very fast.
LTO is certainly slow - but that’s by design. Without LTO almost all optimisation is done per cpp file and linking is just linking and symbol resolving. With LTO on you postpone optimisation until you link and you have much more data to optimise. So this will be slow - but usually gain performance since the optimiser can work on your whole application.
So I suspect there is no bug here. Just how things work.
Thanks, Now I am using ThinLTO, that’s much faster