Skip to content

Commit f832153

Browse files
authored
Merge pull request #37433 from artemcm/PassCrossCompilHostsToSwiftDriverBuild
[Build Script] Pass down cross compilation host targets to swift-driver build
2 parents 58b7bbd + 5ba154e commit f832153

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/swift_build_support/swift_build_support/products/swiftdriver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ def run_build_script_helper(action, host_target, product, args):
132132
helper_cmd += [
133133
'--lit-test-dir', lit_test_dir
134134
]
135+
# Pass Cross compile host info
136+
if swiftpm.SwiftPM.has_cross_compile_hosts(args):
137+
helper_cmd += ['--cross-compile-hosts']
138+
for cross_compile_host in args.cross_compile_hosts:
139+
helper_cmd += [cross_compile_host]
135140
if args.verbose_build:
136141
helper_cmd.append('--verbose')
137142

0 commit comments

Comments
 (0)