Add load limit option to make
Parallel compilation should be also enabled with limited to some load value. The load values can be retrieved from /proc/loadavg. The -l
option should accept an argument with maximum load value.
The current parallel build algorithm should require a new core every time there is any job ready to start, only limits the maximum number of cores. When the maximum load is set, then it should start a new job regardless of how many jobs are already started, unless the current value of load has exceeded the maximum load value.
The default maximum number of jobs should also depend on whether the -l option is passed - it should be 1
always by default and -1
(unlimited) if -l option is given. The maximum number of cores can be still limited with -j option.