Skip to content

Commit aaafc31

Browse files
authored
Merge pull request #68463 from rintaro/5.9-buildscript-install-earlyswiftsyntax
[5.9][build-script] Install 'earlyswiftsyntax' if 'install-swift' is off
2 parents e019b2a + 6819565 commit aaafc31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftsyntax.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def test(self, host_target):
7373
pass
7474

7575
def should_install(self, host_target):
76-
# The artifacts are copied to build directory of 'swift' and are
77-
# installed as a part of 'swift' product.
78-
return False
76+
# When '--install-swift' is enabled, earlyswiftsyntax libraries are installed
77+
# from 'swift' product.
78+
return (self.should_build(host_target) and self.args.install_swiftsyntax and
79+
"--install-swift" not in self.args.build_script_impl_args)
7980

8081
def install(self, host_target):
81-
# No-op.
82-
pass
82+
self.install_with_cmake(["install"], self.host_install_destdir(host_target))

0 commit comments

Comments
 (0)