[Qt-creator] Building LLVM/Clang with Clazy
Ivan Donchevskii
ivan.donchevskii at qt.io
Tue Apr 24 09:14:37 CEST 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180424/8986020e/attachment.html>
More information about the Qt-creator
mailing list