From e4654ef8cedfd2f20f3eace6df1f4192548a957b Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Wed, 13 Aug 2014 14:53:54 +0100 Subject: [PATCH] option: add icecream support The icecream N option is forwarded to depanneur which one forwards it to the build script Change-Id: I43e84a4b483093e2919d74575d55c756307ea423 Signed-off-by: Julien Isorce Signed-off-by: Li Jinjing --- gitbuildsys/cmd_build.py | 4 ++++ tools/gbs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index 537a129..7b8d626 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -237,6 +237,10 @@ def prepare_depanneur_opts(args): cmd_opts += ['--deps'] if args.rdeps: cmd_opts += ['--rdeps'] + + if args.icecream > 0: + cmd_opts += ['--icecream=%s' % args.icecream] + cmd_opts += ['--threads=%s' % args.threads] cmd_opts += ['--packaging-dir=%s' % get_packaging_dir(args)] diff --git a/tools/gbs b/tools/gbs index 1cd94c7..f0c75e3 100755 --- a/tools/gbs +++ b/tools/gbs @@ -225,6 +225,8 @@ def build_parser(parser): help='working in offline mode. Start building directly') group.add_argument('--ccache', action="store_true", help='use ccache to speed up rebuilds') + group.add_argument('--icecream', type=int, default=0, + help='Use N parallel build jobs with icecream') group.add_argument('--threads', type=int, default=1, help='number of threads to build multiple packages ' 'in parallel') -- 2.7.4