]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
BuildSupport: Honour new runvar make_njobs
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Jul 2018 10:25:36 +0000 (11:25 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 9 Jul 2018 10:47:06 +0000 (11:47 +0100)
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>
Osstest/BuildSupport.pm

index b96ce76625aa8621a9c91f41d485577969673505..4367b40925f7ba6d673e63d58b3595d4453bb81b 100644 (file)
@@ -104,7 +104,10 @@ sub selectbuildhost {
 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});