Having a hardcoded -j4, and having this come via DefMakeFlags, is not
brilliant. But at least this make_njobs variable has better semantics
so won't make it harder to make this more sophisticated later.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
sub builddirsprops {
my (%xbuildopts) = @_;
- $xbuildopts{DefMakeFlags} ||= '-j4';
+ if (!defined ) {
+ my $njobs = $r{make_njobs} // 4;
+ $xbuildopts{DefMakeFlags} = "-j$njobs";
+ }
$builddir= target_jobdir($ho);
$makeflags= get_host_property($ho, 'build make flags',
$xbuildopts{DefMakeFlags});