[Development] CMake UNITY_BUILD ( QTBUG-109394 )

Thiago Macieira thiago.macieira at intel.com
Tue Jan 17 17:15:19 CET 2023

On Tuesday, 17 January 2023 07:26:28 PST Volker Hilsheimer via Development 
> No idea why windows-11_22h2-mingw11-developer-build is so slow

My experience is that the standard GNU binutils ld is mighty slow on Windows. 
That might be the case for all platforms other than ELF ones, but I don't have 
any non-Windows non-ELF to test on. It has a quadratic symbol search time, so 
it's slow even when cross-compiling and file system access is fast. On Windows, 
filesystem access is not fast.

An LLVM lld build might be faster. This need not be a Clang build, as GCC 
accepts -fuse-ld=lld. I've just tested:

$ gcc -fuse-ld=lld -xc /dev/null
ld.lld: error: undefined symbol: main
>>> referenced by start.S:103 (../sysdeps/x86_64/start.S:103)
>>>               /usr/lib64/gcc/x86_64-generic-linux/12/../../../../lib64/
collect2: error: ld returned 1 exit status

Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5167 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230117/d44780c2/attachment.bin>

More information about the Development mailing list