Skip to content

Commit

Permalink
Default to building the early SwiftSyntax package.
Browse files Browse the repository at this point in the history
One can disable this with `build-script --skip-early-swiftsyntax`.
  • Loading branch information
DougGregor committed Sep 20, 2022
1 parent b037a7c commit ca2b393
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions utils/build_swift/build_swift/driver_arguments.py
Expand Up @@ -662,8 +662,9 @@ def create_argument_parser():
option(['--swiftsyntax'], toggle_true('build_swiftsyntax'),
help='build swiftSyntax')

option(['--early-swiftsyntax'], toggle_true('build_early_swiftsyntax'),
help='build early SwiftSyntax')
option(['--skip-early-swiftsyntax'],
toggle_false('build_early_swiftsyntax'),
help='skip building early SwiftSyntax')

option(['--skstresstester'], toggle_true('build_skstresstester'),
help='build the SourceKit stress tester')
Expand Down
4 changes: 2 additions & 2 deletions utils/build_swift/tests/expected_options.py
Expand Up @@ -90,7 +90,7 @@
'build_swiftpm': False,
'build_swift_driver': False,
'build_early_swift_driver': True,
'build_early_swiftsyntax': False,
'build_early_swiftsyntax': True,
'build_swiftsyntax': False,
'build_libparser_only': False,
'build_skstresstester': False,
Expand Down Expand Up @@ -519,7 +519,6 @@ class BuildScriptImplOption(_BaseOption):
SetTrueOption('--skip-build'),
SetTrueOption('--swiftpm', dest='build_swiftpm'),
SetTrueOption('--swift-driver', dest='build_swift_driver'),
SetTrueOption('--early-swiftsyntax', dest='build_early_swiftsyntax'),
SetTrueOption('--swiftsyntax', dest='build_swiftsyntax'),
SetTrueOption('--build-libparser-only', dest='build_libparser_only'),
SetTrueOption('--skstresstester', dest='build_skstresstester'),
Expand Down Expand Up @@ -637,6 +636,7 @@ class BuildScriptImplOption(_BaseOption):
DisableOption('--skip-clean-xctest', dest='clean_xctest'),
DisableOption('--skip-clean-llbuild', dest='clean_llbuild'),
DisableOption('--skip-early-swift-driver', dest='build_early_swift_driver'),
DisableOption('--skip-early-swiftsyntax', dest='build_early_swiftsyntax'),
DisableOption('--skip-clean-swiftpm', dest='clean_swiftpm'),
DisableOption('--skip-clean-swift-driver', dest='clean_swift_driver'),
DisableOption('--skip-test-android', dest='test_android'),
Expand Down

0 comments on commit ca2b393

Please sign in to comment.