[llvm-dev] Recommended computer resources to build llvm

Wink Saville via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 6 15:51:39 PDT 2016


@prazek, can you share your cmake and or ninja command line?

Actually are most people using -G Ninja for cmake as the documentation suggests?

On Tue, Sep 6, 2016 at 3:48 PM, Piotr Padlewski <prazek at google.com> wrote:
> I usually work on release+asserts build, which is much faster and doesn't
> require that much RAM as Debug/RelWithDebInfo build. I only build debug when
> I need it :)
> Also lowering jobs for linking is very helpful when building with debug/LTO
> etc.
>
> On Tue, Sep 6, 2016 at 3:37 PM, Alexandre Isoard via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>>
>> And again...
>> LLVM_BUILD_LLVM_DYLIB:BOOL=ON
>> LLVM_LINK_LLVM_DYLIB:BOOL=ON
>>
>> This one is the good one... maybe.
>>
>> On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard
>> <alexandre.isoard at gmail.com> wrote:
>>>
>>> That is because I mistyped it:
>>> LLVM_ENABLE_LLVM_DYLIB:BOOL=ON
>>> LLVM_LINK_LLVM_DYLIB:BOOL=ON
>>>
>>> On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> wrote:
>>>>
>>>> On Tue, Sep 6, 2016 at 3:05 PM, Alexandre Isoard
>>>> <alexandre.isoard at gmail.com> wrote:
>>>> > LLVM_ENABLE_DYLIB
>>>>
>>>> Where/when/how do you specify LLVM_ENABLE_DYLIB and LLVM_LINK_DYLIB?
>>>>
>>>> I tried the following on the cmake command line:
>>>>
>>>> $ cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=/home/wink/opt/llvm
>>>> -DLLVM_ENABLE_DYLIB=true -DLLVM_LINK_DYLIB=true
>>>>
>>>>
>>>> And got:
>>>> ...
>>>> -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
>>>> -- Configuring done
>>>> -- Generating done
>>>> CMake Warning:
>>>>   Manually-specified variables were not used by the project:
>>>>
>>>>     LLVM_ENABLE_DYLIB
>>>>     LLVM_LINK_DYLIB
>>>>
>>>>
>>>> -- Build files have been written to: /home/wink/foss/llvm.3.9.0/build
>>>
>>>
>>>
>>>
>>> --
>>> Alexandre Isoard
>>
>>
>>
>>
>> --
>> Alexandre Isoard
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>


More information about the llvm-dev mailing list