Menu

1 / 3

Qt Creator 20: faster clangd

Planet Qt·5 months ago
#2kxoXnhz
#qt#clang#build#windows#arm64
Reading 0:00
15s threshold

In this article, I am going to talk about having a PGO (Profile-Guided Optimization) build of Clang.

Qt Creator has had a PGO build of clangd (and previously libclang.dll ) on Windows x64 for quite a while now . This was a MinGW GCC build of clangd , since the MSVC compiler generated a slower PGO binary.

With the update to Clang 22, the MinGW GNU compiler (13.1.0) was having issues performing the PGO build, which forced a different approach.

This approach was the multi-stage PGO build of Clang itself.

This is no longer exclusive to Windows x64; it is now available for all platforms !

The llvm.org documentation mentions:

PGO (Profile-Guided Optimization) allows your compiler to better optimize code for how it actually runs.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.