Skip to content

Commit 6df6ae7

Browse files
committed
[build-script] Add a couple more options at the build-script layer.
1 parent bf75c8f commit 6df6ae7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

utils/build-script

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ class BuildScriptInvocation(object):
374374
pipes.quote(arg) for arg in cmake.build_args()),
375375
]
376376

377+
if args.build_stdlib_deployment_targets:
378+
impl_args += [
379+
"--build-stdlib-deployment-targets", " ".join(
380+
args.build_stdlib_deployment_targets)]
377381
if args.cross_compile_hosts:
378382
impl_args += [
379383
"--cross-compile-hosts", " ".join(args.cross_compile_hosts)]
@@ -419,6 +423,8 @@ class BuildScriptInvocation(object):
419423
impl_args += ["--skip-build-libdispatch"]
420424
if not args.build_swiftpm:
421425
impl_args += ["--skip-build-swiftpm"]
426+
if args.build_swift_stdlib_unittest_extra:
427+
impl_args += ["--build-swift-stdlib-unittest-extra"]
422428

423429
if args.skip_build_linux:
424430
impl_args += ["--skip-build-linux"]
@@ -853,6 +859,11 @@ details of the setups of other systems or automated environments.""")
853859
target.name
854860
for target in
855861
StdlibDeploymentTarget.default_stdlib_deployment_targets()])
862+
targets_group.add_argument(
863+
"--build-stdlib-deployment-targets",
864+
help="A space-separated list that filters which of the configured "
865+
"targets to build the Swift standard library for, or 'all'.",
866+
type=arguments.type.shell_split, default=["all"])
856867

857868
projects_group = parser.add_argument_group(
858869
title="Options to select projects")
@@ -1152,6 +1163,10 @@ details of the setups of other systems or automated environments.""")
11521163
help="Use the host compiler, not the self-built one to compile the "
11531164
"Swift runtime",
11541165
action="store_true")
1166+
parser.add_argument(
1167+
"--build-swift-stdlib-unittest-extra",
1168+
help="Build optional StdlibUnittest components",
1169+
action="store_true")
11551170

11561171
run_build_group = parser.add_argument_group(
11571172
title="Run build")

0 commit comments

Comments
 (0)