AUTOMOC is slow on Windows
The last rebuilds of only the _autogen
target took between 120, 220, 231 seconds. I would expect this to finish in a lot less, as it does on Linux. All source code is on an SSD (C:), but it doesn't look like that's the bottleneck.
What can we do to improve the runtime? Is there any way to debug or profile this?
When I look at the AutogenInfo.json, it seems like moc is invoked ~2000 times (number of entries in HEADERS and SOURCES).
Qt 6.6.0, CMake 3.27.4, VS 2022.