Skip to content

Commit 563bef6

Browse files
committed
[Build System: build-script] Update the --stdlib-deployment-targets flag to no longer append from multiple uses, instead use the standard last-wins strategy. This aligns better with the existing documentation for the argument and the similar --build-stdlib-deployment-targets flag.
1 parent 194dba6 commit 563bef6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/build_swift/driver_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def create_argument_parser():
510510
help='A space separated list of targets to cross-compile host '
511511
'Swift tools for. Can be used multiple times.')
512512

513-
option('--stdlib-deployment-targets', append,
513+
option('--stdlib-deployment-targets', store,
514514
type=argparse.ShellSplitType(),
515515
default=None,
516516
help='list of targets to compile or cross-compile the Swift '

utils/build_swift/tests/expected_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ class IgnoreOption(_BaseOption):
535535
StrOption('--host-target'),
536536
StrOption('--lit-args'),
537537
StrOption('--llvm-targets-to-build'),
538+
StrOption('--stdlib-deployment-targets'),
538539
StrOption('--swift-darwin-module-archs'),
539540
StrOption('--swift-darwin-supported-archs'),
540541

@@ -570,7 +571,6 @@ class IgnoreOption(_BaseOption):
570571
AppendOption('--cross-compile-hosts'),
571572
AppendOption('--extra-cmake-options'),
572573
AppendOption('--extra-swift-args'),
573-
AppendOption('--stdlib-deployment-targets'),
574574
AppendOption('--test-paths'),
575575

576576
UnsupportedOption('--build-jobs'),

0 commit comments

Comments
 (0)