@@ -374,6 +374,10 @@ class BuildScriptInvocation(object):
374
374
pipes .quote (arg ) for arg in cmake .build_args ()),
375
375
]
376
376
377
+ if args .build_stdlib_deployment_targets :
378
+ impl_args += [
379
+ "--build-stdlib-deployment-targets" , " " .join (
380
+ args .build_stdlib_deployment_targets )]
377
381
if args .cross_compile_hosts :
378
382
impl_args += [
379
383
"--cross-compile-hosts" , " " .join (args .cross_compile_hosts )]
@@ -419,6 +423,8 @@ class BuildScriptInvocation(object):
419
423
impl_args += ["--skip-build-libdispatch" ]
420
424
if not args .build_swiftpm :
421
425
impl_args += ["--skip-build-swiftpm" ]
426
+ if args .build_swift_stdlib_unittest_extra :
427
+ impl_args += ["--build-swift-stdlib-unittest-extra" ]
422
428
423
429
if args .skip_build_linux :
424
430
impl_args += ["--skip-build-linux" ]
@@ -853,6 +859,11 @@ details of the setups of other systems or automated environments.""")
853
859
target .name
854
860
for target in
855
861
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" ])
856
867
857
868
projects_group = parser .add_argument_group (
858
869
title = "Options to select projects" )
@@ -1152,6 +1163,10 @@ details of the setups of other systems or automated environments.""")
1152
1163
help = "Use the host compiler, not the self-built one to compile the "
1153
1164
"Swift runtime" ,
1154
1165
action = "store_true" )
1166
+ parser .add_argument (
1167
+ "--build-swift-stdlib-unittest-extra" ,
1168
+ help = "Build optional StdlibUnittest components" ,
1169
+ action = "store_true" )
1155
1170
1156
1171
run_build_group = parser .add_argument_group (
1157
1172
title = "Run build" )
0 commit comments