Skip to content

Add the target list to build-script --help. #29283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions utils/build_swift/build_swift/driver_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ def create_argument_parser():
option('--stdlib-deployment-targets', store,
type=argparse.ShellSplitType(),
default=None,
help='list of targets to compile or cross-compile the Swift '
'standard library for. %(default)s by default.')
help='The targets to compile or cross-compile the Swift standard '
'library for. %(default)s by default.'
' Comma separated list: {}'.format(
' '.join(StdlibDeploymentTarget.get_target_names())))

option('--build-stdlib-deployment-targets', store,
type=argparse.ShellSplitType(),
Expand Down
5 changes: 5 additions & 0 deletions utils/swift_build_support/swift_build_support/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ def get_target_for_name(cls, name):
def get_targets_by_name(cls, names):
return [cls.get_target_for_name(name) for name in names]

@classmethod
def get_target_names(cls):
return sorted([name for (name, target) in
cls._targets_by_name.items()])


def install_prefix():
"""
Expand Down