-j flag

CodeLite installation/troubleshooting forum
N7DR
CodeLite Enthusiast
Posts: 20
Joined: Sun Sep 01, 2019 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

-j flag

Post by N7DR »

When building a project I see that it is initiated with the command:
/bin/sh -c '/usr/bin/make -j4 -e -f Makefile'

How can I change the "-j" value to something other than 4? I can't see where it is set :-(
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: -j flag

Post by eranif »

the '-4' means that 4 processes will be used during the build stage.
this number is taken from your machine (i.e. you have 4 cores or 2 cores with hyper threading enabled)

If you plan on increasing it, it won't help since your computer does not support more than that.
if you want to manually change it, it will be under:

settings -> build settings -> compilers

Locate the compiler you are using

and change it in the 'Tools' tab
Make sure you have read the HOW TO POST thread
N7DR
CodeLite Enthusiast
Posts: 20
Joined: Sun Sep 01, 2019 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: -j flag

Post by N7DR »

> the '-4' means that 4 processes will be used during the build stage.
> this number is taken from your machine (i.e. you have 4 cores or 2 cores with hyper threading enabled)

Yes, I know what the number means, and the reason I want to change it is that the number 4 is wrong. Thanks for letting me know how.
Post Reply