File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,10 @@ class BuildScriptInvocation(object):
374
374
pipes .quote (arg ) for arg in cmake .build_args ()),
375
375
]
376
376
377
+ if args .cross_compile_hosts :
378
+ impl_args += [
379
+ "--cross-compile-hosts" , " " .join (args .cross_compile_hosts )]
380
+
377
381
if toolchain .ninja :
378
382
impl_args += ["--ninja-bin=%s" % toolchain .ninja ]
379
383
if args .distcc :
@@ -815,6 +819,12 @@ details of the setups of other systems or automated environments.""")
815
819
"target. The built LLVM and Clang will be used to compile Swift "
816
820
"for the cross-compilation targets." ,
817
821
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 = [])
818
828
targets_group .add_argument (
819
829
"--stdlib-deployment-targets" ,
820
830
help = "list of targets to compile or cross-compile the Swift standard "
You can’t perform that action at this time.
0 commit comments