Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Tips to increase compilation speed?

compilation increase speed tips
0
10 Posted

Tips to increase compilation speed?

0

See –enable-final above 🙂 . “make final” uses the all-in-one-file trick in the current directory even if –enable-final wasn’t used, and “make no-final” does a normal compilation in the current directory even if –enable-final was used. Include your moc files! Header files declaring a QObject descendant have to be run through moc to produce a .moc file. This .moc file has to be compiled, for which two possibilities exists: compile it separately, or #include it in the C++ file implementing that above mentioned class. The latter is more efficient in term of compilation speed. BTW, kdesdk/scripts/includemocs does this automatically. Buy more ram, a faster machine and another processor.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.