There are two use cases that calls for allowing cross compilation of tools (moc,uic,qmlcachegen,qtwaylandscanner,etc.)
1) for compiling Qt applications in the target hardware. Even if rare, it's still happening for embedded targets.
2) for creating SDK to run on different host (Yocto build on linux to run on Windows with mingw)
|For Gerrit Dashboard: QTBUG-81901|
|298509,12||CMake: Make it possible to build tools when cross-compiling||dev||qt/qtbase||Status: MERGED||+2||0|