[llvm-dev] System hangs during last stages of LLVM build | Tips on speeding it up ?
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Thu Feb 23 10:52:33 PST 2017
On 23 February 2017 at 10:16, SANJAY SRIVALLABH SINGAPURAM
<llvmresch_int01 at iith.ac.in> wrote:
> Would complications arise because of a cyclic dependency, using lld to build (a newer) lld, and possibly changing the lld binary while it's being used to link other files ?
Yes. You can't use a tool in its own build, so you need something like
a 2-stage compilation. You'd have two build directories; one uses the
system linker to build lld (probably in release mode for speed); the
other uses that lld to build the rest of LLVM.
Or use an lld provided by your OS, which would be much easier. They're
thin on the ground these days, but they should be getting more common;
I think Debian at least might get it for the 4.0 release.
Cheers.
Tim.
More information about the llvm-dev
mailing list