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 <annu...@yandex.ru> 
> wrote:
> 
> 
> 30.08.2012, 14:37, "Till Oliver Knoll" <till.oliver.kn...@gmail.com>:
> > Am 30.08.2012 um 11:47 schrieb Bo Elmgreen <bo.elmgr...@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to