[Qt-creator] Building LLVM/Clang with Clazy

Andrzej Telszewski atelszewski at gmail.com
Wed Apr 25 00:11:04 CEST 2018


Hi,

Yep, that was it.
I built using commit 427ad76 of Clazy and it worked fine.

Thanks!

-- 
Best regards / Pozdrawiam,
Andrzej Telszewski

On 24/04/18 17:23, Ivan Donchevskii wrote:
> This one - 427ad7689ac65bc4106c0a420c1165cc57f1eef7
> 
> I think you can also use HEAD without much of a trouble.
> 
> ------------------------------------------------------------------------
> *From:* Qt-creator 
> <qt-creator-bounces+ivan.donchevskii=qt.io at qt-project.org> on behalf of 
> Andrzej Telszewski <atelszewski at gmail.com>
> *Sent:* Tuesday, April 24, 2018 5:17:42 PM
> *To:* qt-creator at qt-project.org
> *Subject:* Re: [Qt-creator] Building LLVM/Clang with Clazy
> Hi,
> 
> I used Clazy 1.3, tagged release.
> 
> Can you tell me which exact commit you used?
> 
> -- 
> Best regards / Pozdrawiam,
> Andrzej Telszewski
> 
> 
> On 24/04/18 17:07, Ivan Donchevskii wrote:
>> Ah, I get it now.
>> 
>> 
>> Which version of clazy do you try?
>> 
>> Our build should work with master but probably not with the release branch.
>> 
>> 
>> Regards,
>> 
>> Ivan
>> 
>>>> *From:* Qt-creator 
>>>> <qt-creator-bounces+ivan.donchevskii=qt.io at qt-project.org> on behalf of 
>>>> Andrzej Telszewski <atelszewski at gmail.com>
>>>> *Sent:* Tuesday, April 24, 2018 8:04:37 AM
>>>> *To:* qt-creatorqt-project.org
>>>> *Subject:* [Qt-creator] Building LLVM/Clang with Clazy
>>>> Hi,
>>>> 
>>>> I've successfully built llvm, clang and clang-tools-extra version 5.0.1.
>>>> 
>>>> I applied all the patches except for 1*0_QTCREATORBUG-15157*, i.e. I
>>>> built LLVM without Clazy support.
>>>> 
>>>> Then I built Qt Creator against it and Clang Code Model and Clang-Tidy
>>>> work fine.
>>>> 
>>>> Then I tried building LLVM with 1*0_QTCREATORBUG-15157* patches applied,
>>>> but the build _FAILS_ with the following error:
>>>> 
>>>> CMake Error at tools/clang/tools/extra/clazy/CMakeLists.txt:23
>>>> (find_package):
>>>>     No "FindClang.cmake" found in CMAKE_MODULE_PATH.
>>>> 
>>>> 
>>>> CMake Warning (dev) at tools/clang/tools/extra/clazy/CMakeLists.txt:23
>>>> (find_package):
>>>>     FindClang.cmake must either be part of this project itself, in this case
>>>>     adjust CMAKE_MODULE_PATH so that it points to the correct location 
>>>> inside
>>>>     its source tree.
>>>> [...]
>>>> 
>>>> 
>>>> My cmake command is the following:
>>>> 
>>>> cmake \
>>>>       -DCMAKE_INSTALL_PREFIX=/usr/libexec/qtcreator/clang \
>>>>       -DCMAKE_BUILD_TYPE=Release \
>>>>       -G "Unix Makefiles" \
>>>>       -DLLVM_ENABLE_RTTI=ON \
>>>>       -DLLVM_ENABLE_ASSERTIONS=OFF \
>>>>       -DLLVM_TARGETS_TO_BUILD="X86" \
>>>>       -DBUILD_SHARED_LIBS=ON \
>>>>       ..
>>>> 
>>>> 
>>>> Help in resolving the problem appreciated! :-)
>>>> 
>>>> -- 
>>>> Best regards / Pozdrawiam,
>>>> Andrzej Telszewski
>>>> _______________________________________________
>>>> Qt-creator mailing list
>>>> Qt-creator at qt-project.org
>>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>> 
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator



More information about the Qt-creator mailing list