Skip to content

Commit 6d6c2e6

Browse files
committed
[build-script] Add --install-back-deploy-concurrency.
Allow the installation of the back-deployment shared libraries for concurrency via build-script.
1 parent 61c8f86 commit 6d6c2e6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,9 @@ def create_argument_parser():
599599
option(['--back-deploy-concurrency'], toggle_true('build_backdeployconcurrency'),
600600
help='build back-deployment support for concurrency')
601601

602+
option(['--install-back-deploy-concurrency'], toggle_true('install_backdeployconcurrency'),
603+
help='install back-deployment support libraries for concurrency')
604+
602605
option(['--libcxx'], toggle_true('build_libcxx'),
603606
help='build libcxx')
604607

utils/build_swift/tests/expected_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ class BuildScriptImplOption(_BaseOption):
476476
dest='test_early_swift_driver', value=False),
477477

478478
SetTrueOption('--back-deploy-concurrency', dest='build_backdeployconcurrency'),
479+
SetTrueOption('--install-back-deploy-concurrency', dest='install_backdeployconcurrency'),
479480
SetTrueOption('--benchmark'),
480481
SetTrueOption('--clean'),
481482
SetTrueOption('--dry-run'),

utils/swift_build_support/swift_build_support/products/backdeployconcurrency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test(self, host_target):
137137
raise RuntimeError("Testing not implemented")
138138

139139
def should_install(self, host_target):
140-
return False
140+
return self.args.install_backdeployconcurrency
141141

142142
def install(self, host_target):
143143
destdir = self.host_install_destdir(host_target) + self.args.install_prefix

0 commit comments

Comments
 (0)