[cfe-dev] newbie

Victor Campos via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 7 10:48:30 PST 2018


Creating shared libs instead of static libs using -DBUILD_SHARED_LIBS=on
will help as the memory requirement for linking executables will be much
smaller. (Even though I don't recall if Clang's linking is affected by this
or just LLVM's)

2018-03-07 11:53 GMT-03:00 mats petersson via cfe-dev <
cfe-dev at lists.llvm.org>:

>
>
> On 7 March 2018 at 14:41, Stephan Bergmann via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> On 07.03.2018 15:31, mats petersson via cfe-dev wrote:
>>
>>> Despite having 32GB of RAM (and not much swap-space), building a debug
>>> version of LLVM + Clang with -j N, and having N > ~10 will make my machine
>>> almost stop (to the level where I hit a key and it takes several seconds to
>>> respond to that single keypress).
>>>
>>
>> What I find useful is to pass a small value like
>> -DLLVM_PARALLEL_LINK_JOBS=2 into the cmake/ninja build.  For me, it's
>> always been too many parallel link jobs that would have brought the build
>> machine to its knees.
>
>
> Ah, that sounds very helpful. I'll give that a try next time I'm fetching
> a new version (I don't update my LLVM + Clang every time I work on my
> project, as it would reduce my work throughput even more than it currently
> is by other distractions).
>
> --
> Mats
>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180307/4bf8d46d/attachment.html>


More information about the cfe-dev mailing list