[Qt-creator] Sensible make -j X?

Mohammad Mirzadeh mirzadeh at gmail.com
Thu Oct 22 19:38:44 CEST 2015


I'm not sure if there's an option to do it in the .pro but if you open the
projects tab in QtCreator you can pass extra options to make. I always pass
-j 8 on my quad-core machine and it works just fine.

On Thursday, October 22, 2015, Cristian Adam <cristian.adam at gmail.com>
wrote:

>
> On Oct 22, 2015 19:16, "Jason H" <jhihn at gmx.com
> <javascript:_e(%7B%7D,'cvml','jhihn at gmx.com');>> wrote:
> >
> > In this world, where both phones and computers are averaging 4 cores (or
> more) does it make sense to ever not default make to 1 thread? I can
> understand that some situations can't have multi-threaded builds, but I
> believe they are in the minority now. I find that a good value for -j is
> N*2 where N is the number of cores (since there is a lot of i/o delay from
> loading all the headers)
> >
> > It would be nice if this was populated from the get-go. I believe it's
> stored in the .user file? Is there a way to set it in the .pro file? I work
> in iOS/Android/Desktop, so it's kinda silly to have to set this 6 times
> (debug/release) in the same project!
> >
>
> If you are using CMake you can switch to ninja instead of make.
>
> Ninja automatically uses all of your machine's computing power.
>
> Cheers,
> Cristian.
>


-- 
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20151022/31e0411e/attachment.html>


More information about the Qt-creator mailing list