[Development] QtCS2019 Notes: Clang-based cpp parser for lupdate
Thiago Macieira
thiago.macieira at intel.com
Mon Nov 25 07:03:11 CET 2019
On Sunday, 24 November 2019 09:25:37 PST Olivier Goffart wrote:
> So moc stays much faster than actually compiling, but it has been reported
> that moc does not play nice with ccache or distributed compile farm.
There's no reason why moc can't be ccache'd.
As for a compile farm, the big problem is that moc usually isn't scheduled and
the farm doesn't know that you're trying to run it. When you run make -jN with
N being the number of slots in your farm, you end up getting N local mocs too.
The solution for that is a build tool (make, ninja, etc.) that understands
farming.
I apply the following hack to force moc scheduling with icecream.
$ grep QMAKE_TOOL mkspecs/linux-g++-optimised/qmake.conf
QMAKE_TOOL_PREFIX=env ICECC_COLOR_DIAGNOSTICS=0 icecc
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Development
mailing list