File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
swift_build_support/swift_build_support Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -525,8 +525,10 @@ def create_argument_parser():
525
525
option ('--stdlib-deployment-targets' , store ,
526
526
type = argparse .ShellSplitType (),
527
527
default = None ,
528
- help = 'list of targets to compile or cross-compile the Swift '
529
- 'standard library for. %(default)s by default.' )
528
+ help = 'The targets to compile or cross-compile the Swift standard '
529
+ 'library for. %(default)s by default.'
530
+ ' Comma separated list: {}' .format (
531
+ ' ' .join (StdlibDeploymentTarget .get_target_names ())))
530
532
531
533
option ('--build-stdlib-deployment-targets' , store ,
532
534
type = argparse .ShellSplitType (),
Original file line number Diff line number Diff line change @@ -244,6 +244,11 @@ def get_target_for_name(cls, name):
244
244
def get_targets_by_name (cls , names ):
245
245
return [cls .get_target_for_name (name ) for name in names ]
246
246
247
+ @classmethod
248
+ def get_target_names (cls ):
249
+ return sorted ([name for (name , target ) in
250
+ cls ._targets_by_name .items ()])
251
+
247
252
248
253
def install_prefix ():
249
254
"""
You can’t perform that action at this time.
0 commit comments