Skip to content

Commit 32f40ba

Browse files
shahmishaltkremenek
authored andcommitted
[build-script] add jobs flag
1 parent cbaeea6 commit 32f40ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/build-script

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,11 @@ def main_preset():
970970
"--distcc",
971971
help="use distcc",
972972
action=arguments.action.optional_bool)
973+
parser.add_argument(
974+
"-j", "--jobs",
975+
help="the number of parallel build jobs to use",
976+
type=int,
977+
dest="build_jobs")
973978
parser.add_argument(
974979
"preset_substitutions_raw",
975980
help="'name=value' pairs that are substituted in the preset",
@@ -1013,6 +1018,8 @@ def main_preset():
10131018
build_script_args += preset_args
10141019
if args.distcc:
10151020
build_script_args += ["--distcc"]
1021+
if args.build_jobs:
1022+
build_script_args += ["--jobs", str(args.build_jobs)]
10161023

10171024
diagnostics.note(
10181025
"using preset '" + args.preset + "', which expands to \n\n" +

0 commit comments

Comments
 (0)