[Development] Announcing moc_combine

Olivier Goffart olivier at woboq.com
Tue May 31 09:45:40 CEST 2016


On Montag, 30. Mai 2016 11:16:00 CEST Oswald Buddenhagen wrote:
> On Mon, May 30, 2016 at 10:19:38AM +0200, Marc Mutz wrote:
> > On Sunday 29 May 2016 18:05:07 Thiago Macieira wrote:
> > > I've just pushed a feature[1] to moc that makes it process multiple
> > > headers
> > > at  the same time, producing only one output file
> > 
> > Separate compilation is not how I would recommend to use moc-generated
> > files. I'd recommend to always include the moc file in the corresponding
> > cpp file.
>
> i agree that the idea to bulk-compile mocs is somewhat backwards.

Backwards to what?
It's easy to do and save compilation time.


[...]
> the next idea would be implementing moc inside the compiler itself,
> which is possible with at least clang and gcc nowadays.
> 
> the last idea is doing away with moc entirely, at the cost of somewhat
> uglier macros, and actually working c++11/14 support in the compiler.
> 
> "incidentally", olivier has more-or-less working solutions based on the
> latter two ideas.

Which impose many more requirements on the compilers. And we support many more 
compiler in Qt.

-- 
Olivier

Woboq - Qt services and support - https://woboq.com - https://code.woboq.org



More information about the Development mailing list