Skip to content

Commit

Permalink
[build-script] Add --install-back-deploy-concurrency.
Browse files Browse the repository at this point in the history
Allow the installation of the back-deployment shared libraries for
concurrency via build-script.
  • Loading branch information
DougGregor committed Aug 27, 2021
1 parent 61c8f86 commit 6d6c2e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions utils/build_swift/build_swift/driver_arguments.py
Expand Up @@ -599,6 +599,9 @@ def create_argument_parser():
option(['--back-deploy-concurrency'], toggle_true('build_backdeployconcurrency'),
help='build back-deployment support for concurrency')

option(['--install-back-deploy-concurrency'], toggle_true('install_backdeployconcurrency'),
help='install back-deployment support libraries for concurrency')

option(['--libcxx'], toggle_true('build_libcxx'),
help='build libcxx')

Expand Down
1 change: 1 addition & 0 deletions utils/build_swift/tests/expected_options.py
Expand Up @@ -476,6 +476,7 @@ class BuildScriptImplOption(_BaseOption):
dest='test_early_swift_driver', value=False),

SetTrueOption('--back-deploy-concurrency', dest='build_backdeployconcurrency'),
SetTrueOption('--install-back-deploy-concurrency', dest='install_backdeployconcurrency'),
SetTrueOption('--benchmark'),
SetTrueOption('--clean'),
SetTrueOption('--dry-run'),
Expand Down
Expand Up @@ -137,7 +137,7 @@ def test(self, host_target):
raise RuntimeError("Testing not implemented")

def should_install(self, host_target):
return False
return self.args.install_backdeployconcurrency

def install(self, host_target):
destdir = self.host_install_destdir(host_target) + self.args.install_prefix
Expand Down

0 comments on commit 6d6c2e6

Please sign in to comment.