File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,12 @@ class BuildScriptInvocation(object):
269
269
args .stdlib_deployment_targets = [
270
270
target .name for target in stdlib_targets ]
271
271
272
+ # Additional stdlib targets if we want to still build the default
273
+ # deployment targets as well.
274
+ if args .extra_stdlib_deployment_targets is not None :
275
+ args .stdlib_deployment_targets += \
276
+ args .extra_stdlib_deployment_targets
277
+
272
278
# SwiftPM and XCTest have a dependency on Foundation.
273
279
# On OS X, Foundation is built automatically using xcodebuild.
274
280
# On Linux, we must ensure that it is built manually.
Original file line number Diff line number Diff line change @@ -585,6 +585,12 @@ def create_argument_parser():
585
585
help = 'list of targets to compile or cross-compile the Swift '
586
586
'standard library for. %(default)s by default.' )
587
587
588
+ option ('--extra-stdlib-deployment-targets' , append ,
589
+ type = argparse .ShellSplitType (),
590
+ default = None ,
591
+ help = 'list of additional targets to cross-compile the Swift standard '
592
+ 'library for in addition to default' )
593
+
588
594
option ('--build-stdlib-deployment-targets' , store ,
589
595
type = argparse .ShellSplitType (),
590
596
default = ['all' ],
Original file line number Diff line number Diff line change 119
119
'enable_ubsan' : False ,
120
120
'export_compile_commands' : False ,
121
121
'extra_cmake_options' : [],
122
+ 'extra_stdlib_deployment_targets' : None ,
122
123
'extra_swift_args' : [],
123
124
'force_optimized_typechecker' : False ,
124
125
'foundation_build_variant' : 'Debug' ,
@@ -510,6 +511,7 @@ class IgnoreOption(_BaseOption):
510
511
AppendOption ('--extra-cmake-options' ),
511
512
AppendOption ('--extra-swift-args' ),
512
513
AppendOption ('--stdlib-deployment-targets' ),
514
+ AppendOption ('--extra-stdlib-deployment-targets' ),
513
515
AppendOption ('--test-paths' ),
514
516
515
517
UnsupportedOption ('--build-jobs' ),
You can’t perform that action at this time.
0 commit comments