[llvm-dev] Recommended computer resources to build llvm

David Jones via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 6 15:35:32 PDT 2016

Are you building with debug symbols?

If so, then be aware that linking libLLVM and libLLDB will require 3-5GB of
memory, just for the link step.

On my 8GB machine, I cannot use -j2 to compile LLVM with debug symbols, as
I will page to death during linking.

On Tue, Sep 6, 2016 at 5:54 PM, Wink Saville via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I've got a i7 with 12 logical cores and 16GB of RAM I successfully
> built RELEASE_390/final but for the last 100 or so files I'd to use
> "ninja -j2" so as not to keep from swapping in the best case and and
> in the worst case the build kills itself without completing because
> apparently its run out of memory.
> For the first 3200 files or so it was doing just fine with "ninja"
> which is probably "ninja -j12" but as I said for the last 100 or so
> files I had to use "ninja -j2" to get it to complete.
> So what is the recommended computer resources, and I guess RAM size in
> particular, for building llvm "quickly"?
> -- wink
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160906/e87b2e7f/attachment.html>

More information about the llvm-dev mailing list