Skip to content

Commit 1f018d4

Browse files
committed
[SwiftPM] Add support for cross-compile-hosts flag to build swiftpm using bootstrap script
1 parent fd8a3aa commit 1f018d4

File tree

1 file changed

+6
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+6
-0
lines changed

utils/swift_build_support/swift_build_support/products/swiftpm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]):
8181
"--foundation-build-dir", foundation_build_dir
8282
]
8383

84+
# Pass Cross compile host info
85+
if self.has_cross_compile_hosts(self.args):
86+
helper_cmd += ['--cross-compile-hosts']
87+
for cross_compile_host in self.args.cross_compile_hosts:
88+
helper_cmd += [cross_compile_host]
89+
8490
helper_cmd.extend(additional_params)
8591

8692
shell.call(helper_cmd)

0 commit comments

Comments
 (0)