Skip to content

Commit c5310d7

Browse files
authored
Merge pull request swiftlang#33547 from gottesmm/pr-6c18a8f5a775148995accbf8ff80fff013e544e1
Consistently use toggle_true instead of store_true when selected projects.
2 parents ab09048 + c8c807f commit c5310d7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -549,16 +549,16 @@ def create_argument_parser():
549549
# -------------------------------------------------------------------------
550550
in_group('Options to select projects')
551551

552-
option('--infer', store_true('infer_dependencies'),
552+
option('--infer', toggle_true('infer_dependencies'),
553553
help='Infer any downstream dependencies from enabled projects')
554554

555-
option(['-l', '--lldb'], store_true('build_lldb'),
555+
option(['-l', '--lldb'], toggle_true('build_lldb'),
556556
help='build LLDB')
557557

558-
option(['-b', '--llbuild'], store_true('build_llbuild'),
558+
option(['-b', '--llbuild'], toggle_true('build_llbuild'),
559559
help='build llbuild')
560560

561-
option(['--libcxx'], store_true('build_libcxx'),
561+
option(['--libcxx'], toggle_true('build_libcxx'),
562562
help='build libcxx')
563563

564564
option(['-p', '--swiftpm'], toggle_true('build_swiftpm'),
@@ -567,16 +567,16 @@ def create_argument_parser():
567567
option(['--install-swiftpm'], toggle_true('install_swiftpm'),
568568
help='install swiftpm')
569569

570-
option(['--swiftsyntax'], store_true('build_swiftsyntax'),
570+
option(['--swiftsyntax'], toggle_true('build_swiftsyntax'),
571571
help='build swiftSyntax')
572572

573-
option(['--skstresstester'], store_true('build_skstresstester'),
573+
option(['--skstresstester'], toggle_true('build_skstresstester'),
574574
help='build the SourceKit stress tester')
575575

576-
option(['--swiftformat'], store_true('build_swiftformat'),
576+
option(['--swiftformat'], toggle_true('build_swiftformat'),
577577
help='build swift-format')
578578

579-
option(['--swiftevolve'], store_true('build_swiftevolve'),
579+
option(['--swiftevolve'], toggle_true('build_swiftevolve'),
580580
help='build the swift-evolve tool')
581581

582582
option(['--swift-driver'], toggle_true('build_swift_driver'),
@@ -630,13 +630,13 @@ def create_argument_parser():
630630
option('--playgroundsupport', toggle_true('build_playgroundsupport'),
631631
help='build PlaygroundSupport')
632632
option('--install-playgroundsupport',
633-
store_true('install_playgroundsupport'),
633+
toggle_true('install_playgroundsupport'),
634634
help='install playground support')
635635

636636
option('--build-ninja', toggle_true,
637637
help='build the Ninja tool')
638638

639-
option(['--build-libparser-only'], store_true('build_libparser_only'),
639+
option(['--build-libparser-only'], toggle_true('build_libparser_only'),
640640
help='build only libParser for SwiftSyntax')
641641

642642
option('--skip-build-clang-tools-extra',

0 commit comments

Comments
 (0)