[PATCH] D75425: [docs] Added solutions to slow build under common problems
Erich Keane via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 06:44:21 PST 2020
erichkeane 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.
That said, do we have a version of our build scripts that build LLD and use it from then on out? We might find that despite increasing the build time a bit, it would improve compilation on low-resource machines.
================
Comment at: llvm/docs/GettingStarted.rst:1104
+ * -DCMAKE_BUILD_TYPE
+ Set this equal to the build you wish to use, either Debug or Release. The
+ Debug build may consume more memory during the linking phase.
----------------
abrachet wrote:
> We could add that if you need a Debug build, you could consider using `-DLLVM_USE_SPLIT_DWARF=ON` which should ease memory pressure on the linker significantly.
While slightly less useful (since you can't as easily debug), a note about release-with-asserts as a good middle ground that compiles roughly as quickly as the normal release build might be valuable.
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