[Development] CMake UNITY_BUILD ( QTBUG-109394 )

Jörg Bornemann joerg.bornemann at qt.io
Mon Jan 23 15:25:36 CET 2023


On 1/23/23 10:20, Friedemann Kleint via Development wrote:

> As for Shawn asking whether the concatenation is deterministic; in my experience, it is.

The concatenation is determinic and depends on the file order in the 
CMake files and the batch size.

One ugliness I've noticed: CMAKE_UNITY_BUILD is documented to not play 
well with CMAKE_EXPORT_COMPILE_COMMANDS. This might hurt users of clangd 
(using clangd with Qt's sources).

-- 
Jörg Bornemann | The Qt Company



More information about the Development mailing list