Skip to content

Commit e2a7e92

Browse files
authored
Merge pull request #3553 from apple/build-script-remove-deprecated-options
2 parents cbcefc9 + bd80cf9 commit e2a7e92

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

utils/build-script

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -366,27 +366,6 @@ class BuildScriptInvocation(object):
366366
args.skip_test_tvos = True
367367
args.skip_test_watchos = True
368368

369-
# --build-swift-stdlib and --build-swift-sdk-overlay are deprecated
370-
# aliases for --build-swift-{dynamic,static}-stdlib and
371-
# --build-swift-{dynamic,static}-sdk-overlay. The deprecated options
372-
# are None by default, but if specified they take precedence over the
373-
# new, more granular options.
374-
if args.build_swift_stdlib is not None:
375-
if args.build_swift_stdlib:
376-
args.build_swift_dynamic_stdlib = True
377-
args.build_swift_static_stdlib = False
378-
else:
379-
args.build_swift_dynamic_stdlib = False
380-
args.build_swift_static_stdlib = False
381-
382-
if args.build_swift_sdk_overlay is not None:
383-
if args.build_swift_sdk_overlay:
384-
args.build_swift_dynamic_sdk_overlay = True
385-
args.build_swift_static_sdk_overlay = False
386-
else:
387-
args.build_swift_dynamic_sdk_overlay = False
388-
args.build_swift_static_sdk_overlay = False
389-
390369
# --skip-test-ios is merely a shorthand for host and simulator tests.
391370
if args.skip_test_ios:
392371
args.skip_test_ios_host = True
@@ -1559,13 +1538,6 @@ details of the setups of other systems or automated environments.""")
15591538

15601539
run_build_group = parser.add_argument_group(
15611540
title="Run build")
1562-
run_build_group.add_argument(
1563-
"--build-swift-stdlib",
1564-
help="a deprecated alias for '--build-swift-dynamic-stdlib=1 "
1565-
"--build-swift-static-stdlib=0'. When specified, this takes "
1566-
"precedence over those options",
1567-
action=arguments.action.optional_bool,
1568-
default=None)
15691541
run_build_group.add_argument(
15701542
"--build-swift-dynamic-stdlib",
15711543
help="build dynamic variants of the Swift standard library",
@@ -1575,13 +1547,6 @@ details of the setups of other systems or automated environments.""")
15751547
"--build-swift-static-stdlib",
15761548
help="build static variants of the Swift standard library",
15771549
action=arguments.action.optional_bool)
1578-
run_build_group.add_argument(
1579-
"--build-swift-sdk-overlay",
1580-
help="a deprecated alias for '--build-swift-dynamic-sdk-overlay=1 "
1581-
"--build-swift-static-sdk-overlay=0'. When specified, this takes "
1582-
"precedence over those options",
1583-
action=arguments.action.optional_bool,
1584-
default=None)
15851550
run_build_group.add_argument(
15861551
"--build-swift-dynamic-sdk-overlay",
15871552
help="build dynamic variants of the Swift SDK overlay",

0 commit comments

Comments
 (0)