[Qt-creator] Building LLVM/Clang with Clazy

Andrzej Telszewski atelszewski at gmail.com
Tue Apr 24 16:33:37 CEST 2018


Hi,

But I actually want to build it with Clazy.
In similar way that the Qt team is doing.

I showed it builds without Clazy just to demonstrate its Clazy that is 
the problem here.

-- 
Best regards / Pozdrawiam,
Andrzej Telszewski


On 24/04/18 09:14, Ivan Donchevskii wrote:
> Hi!
> 
> You write that you want to build it without clazy but you issue comes 
> from clazy folder.
> 
> Just remove this folder, it does not come with clang_tools_extra package :)
> 
> 
> 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



More information about the Qt-creator mailing list