The Samba-Bugzilla – Attachment 14484 Details for
Bug 13606
make -j<num> doesn't run parallel jobs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.9 and 4.8
v4-9-fix_make_jobs.patch (text/plain), 2.02 KB, created by
Andreas Schneider
on 2018-09-10 06:16:35 UTC
(
hide
)
Description:
patch for 4.9 and 4.8
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2018-09-10 06:16:35 UTC
Size:
2.02 KB
patch
obsolete
>From 704372f9fea906420ab1463a548cff54cb2555cf Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Thu, 6 Sep 2018 12:40:10 +0200 >Subject: [PATCH] wafsamba: Fix 'make -j<jobs>' > >Currently only 'make -j' enables parallel builds and e.g. 'make -j4' >results in no parallel compile jobs at all. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13606 > >Signed-off-by: Andreas Schneider <asn@samba.org> >Reviewed-by: Alexander Bokovoy <ab@samba.org> > >Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> >Autobuild-Date(master): Fri Sep 7 20:24:46 CEST 2018 on sn-devel-144 > >(cherry picked from commit 70169d4789fe8b2ee4efe5e88eeaa80e1a641b32) >--- > buildtools/wafsamba/samba_utils.py | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py >index 0f95c125854..c20f61ec96e 100644 >--- a/buildtools/wafsamba/samba_utils.py >+++ b/buildtools/wafsamba/samba_utils.py >@@ -467,6 +467,7 @@ def CHECK_MAKEFLAGS(bld): > if makeflags is None: > return > jobs_set = False >+ jobs = None > # we need to use shlex.split to cope with the escaping of spaces > # in makeflags > for opt in shlex.split(makeflags): >@@ -489,17 +490,21 @@ def CHECK_MAKEFLAGS(bld): > setattr(Options.options, opt[0:loc], opt[loc+1:]) > elif opt[0] != '-': > for v in opt: >- if v == 'j': >+ if re.search(r'j[0-9]*$', v): > jobs_set = True >+ jobs = opt.strip('j') > elif v == 'k': > Options.options.keep = True >- elif opt == '-j': >+ elif re.search(r'-j[0-9]*$', opt): > jobs_set = True >+ jobs = opt.strip('-j') > elif opt == '-k': > Options.options.keep = True > if not jobs_set: > # default to one job > Options.options.jobs = 1 >+ elif jobs_set and jobs: >+ Options.options.jobs = int(jobs) > > Build.BuildContext.CHECK_MAKEFLAGS = CHECK_MAKEFLAGS > >-- >2.18.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
ab
:
review+
Actions:
View
Attachments on
bug 13606
: 14484