[PATCH] D75425: [docs] Added solutions to slow build under common problems
Kókai Péter via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 07:14:20 PST 2020
Kokan added a comment.
> Anything like this without an LLD/Gold reference is likely insufficient. In my experience, switching to Gold or LLD has been the biggest benefit so far.
I did some testing comparing `-DLLVM_PARALLEL_LINK_JOBS` and `-DLLVM_USE_LINKER=lld` on linux. (for parallel link using different number of values).
Based on that I would also say that if you have `lld` the parallel linking is insignificant[1].
On the other hand I would limit the list of "tips" here. (As too much option could cause users not to read it; I've been there). Mostly at 1-3 option I would stop, and possible there could be a different section listing all of the other options.
The first in the list should be `LLVM_USE_LINKER` imho (which I do not write as an llvm veteran which I am not)
[1] https://reviews.llvm.org/D72402 Note: this is no an advertisement of that patch, which is kinda rotten because of me, just to reference some data in the description.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75425/new/
https://reviews.llvm.org/D75425
More information about the llvm-commits
mailing list