Skip to content

Commit 178f7b5

Browse files
authored
Merge pull request #4056 from apple/add-jobs-flag-build-script
[build-script] add jobs flag
2 parents 2af662b + 8f1fcc7 commit 178f7b5

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
@@ -985,6 +985,11 @@ def main_preset():
985985
"--distcc",
986986
help="use distcc",
987987
action=arguments.action.optional_bool)
988+
parser.add_argument(
989+
"-j", "--jobs",
990+
help="the number of parallel build jobs to use",
991+
type=int,
992+
dest="build_jobs")
988993
parser.add_argument(
989994
"preset_substitutions_raw",
990995
help="'name=value' pairs that are substituted in the preset",
@@ -1028,6 +1033,8 @@ def main_preset():
10281033
build_script_args += preset_args
10291034
if args.distcc:
10301035
build_script_args += ["--distcc"]
1036+
if args.build_jobs:
1037+
build_script_args += ["--jobs", str(args.build_jobs)]
10311038

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

0 commit comments

Comments
 (0)