

On I will name these two as Visual C++ kit and MinGW kit. I have used the git version of Lyx with both Qt 5.5.1 for Windows 32-bit (VS 2013, 804 MB)Īnd Qt 5.5.1 for Windows 32-bit (MinGW 4.9.2, 1.0 GB). Which C++ compiler was able to this? Setup I have managed to get libclang toĬompile Text3.cpp in approximatively 6 seconds. I will take clang 3.6.2 and compile it Visual C++ 2013, Visual C++ 2015, Clang 3.7.0 and Mingw-w64 GCC 5.3.0.

Qt Creator 3.6.0 ships with libclang 3.6.2, and for Windows it ships a Visual C++ 2013 32 bit build, unlike Linux where 64 bit is the norm. What can we do about it? It would be nice if M 620 2.67 GHz Windows 10 powered laptop it takes, for Text3.cpp, approximately 10 seconds to “compile”.Įven though my laptop has multiple cores, libclang will use only one core to compile Text3.cpp.

Lyx uses Boost and Qt5 and on my Intel(R) Core (TM) i7 CPU I have picked Lyx – The Document Processor as a test project for Qt Creator. The subsequent code completion commands are fast. The completeĬompilation is done only once. Qt Creator will cache this information in a form of a pch file under %temp%/qtc-clang-/preamble-.pch file. That if you are having a big source file, with lots of includes, it will take some time to do so. The clang code model is still experimental and not 100% feature equivalent withīy using the clang code model it means that Qt Creator uses a real C++ compiler to parse the source code you are editing. Libclang is used by Qt Creator to provide code completion support. On Windows Qt Creator will output this information in Windows debugger output. This is doneīy setting this environment variable: QT_LOGGING_RULES=true.
#QT CREATOR NEEDS A COMPILER SETUP TO BUILD WINDOWS 10 HOW TO#
The bug report contains information on how to enable Qt Creator’s clang code model statistics. Qt Creator 3.6.0 fixed the following bug: QTCREATORBUG-15365: Clang Model: code completion speed regression. In this article I will tackle libclang’s speed on Windows, in particular Qt Creator’s clang code model.
