[Interest] Slow compiling on Mac

Bo Elmgreen bo.elmgreen at gmail.com
Thu Aug 30 13:32:27 CEST 2012


Hi Mike,

That certainly hit the spot! With that switch the compile time with gcc is
down to 8 minutes.

Thanks!
Bo

On Thu, Aug 30, 2012 at 1:17 PM, Michael Jackson <imikejackson at gmail.com>wrote:

> In QtCreator it uses "Make" to do the compile and by default it will only
> use a single thread Where Xcode would by default use all your cores to
> compile. You need to add a "-jN" to the "make argument" in the "Project"
> tab of QtCreator. Where "N" is the number of cores on your computer. That
> will speed things up.
>
> Mike,
>
> On Aug 30, 2012, at 7:09 AM, Bo Elmgreen wrote:
>
> > Hi!
> >
> > Thanks for the suggestions. Yes, it is true that I might be comparing
> apples to pears :-) but what if gcc actually was just as fast as clang? ;-)
> > Anyway, I am now trying to set up clang in QtCreator. Since 4.8.0 (I
> think) there are mkspecs for clang - although unsupported - but when
> compiling, QtCreator cannot find clang++ :-/ And I cannot find it on my
> system. Maybe it is because I still have Xcode 3.2.6 installed!? Hmmm - it
> seems like I need to upgrade to Xcode 4 in order to get clang++ :-/
> >
> > Cheers,
> > Bo
> >
> > On Thu, Aug 30, 2012 at 12:48 PM, Konstantin Tokarev <annulen at yandex.ru>
> wrote:
> >
> >
> > 30.08.2012, 14:37, "Till Oliver Knoll" <till.oliver.knoll at gmail.com>:
> > > Am 30.08.2012 um 11:47 schrieb Bo Elmgreen <bo.elmgreen at gmail.com>:
> > >
> > >>  ...(gcc in QtCreator and clang in Xcode)
> > >
> > > Here you go, you answered your own question! :)
> > >
> > > You were not comparing Qt Creator vs Xcode, but rather gcc vs clang!
> > >
> > >>  ... are there tricks we can use to speed up the compiling?
> > >
> > > Usually the environment variable QMAKESPEC tells 'qmake' how to
> generate the Makefiles (for what compiler).
> >
> > There's no clang mkspec in Qt 4.7, so QMAKE_CXX needs to be specified on
> qmake command line.
> >
> > --
> > Regards,
> > Konstantin
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> >
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120830/aabadf50/attachment.html>


More information about the Interest mailing list