Skip to content

Commit c03943c

Browse files
committed
[build-script] Lift --cross-compile-hosts to build-script level.
1 parent 2cbf0fd commit c03943c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

utils/build-script

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ class BuildScriptInvocation(object):
374374
pipes.quote(arg) for arg in cmake.build_args()),
375375
]
376376

377+
if args.cross_compile_hosts:
378+
impl_args += [
379+
"--cross-compile-hosts", " ".join(args.cross_compile_hosts)]
380+
377381
if toolchain.ninja:
378382
impl_args += ["--ninja-bin=%s" % toolchain.ninja]
379383
if args.distcc:
@@ -815,6 +819,12 @@ details of the setups of other systems or automated environments.""")
815819
"target. The built LLVM and Clang will be used to compile Swift "
816820
"for the cross-compilation targets.",
817821
default=StdlibDeploymentTarget.host_target())
822+
targets_group.add_argument(
823+
"--cross-compile-hosts",
824+
help="A space separated list of targets to cross-compile host Swift "
825+
"tools for. Can be used multiple times.",
826+
action=arguments.action.concat, type=arguments.type.shell_split,
827+
default=[])
818828
targets_group.add_argument(
819829
"--stdlib-deployment-targets",
820830
help="list of targets to compile or cross-compile the Swift standard "

0 commit comments

Comments
 (0)