@@ -42,7 +42,7 @@ def is_before_build_script_impl_product(cls):
42
42
def should_build (self , host_target ):
43
43
return True
44
44
45
- def run_bootstrap_script (self , action , host_target , additional_params = []):
45
+ def run_bootstrap_script (self , action , host_target , additional_params = [], * , ignore_cross_compile_argument = False ):
46
46
script_path = os .path .join (
47
47
self .source_dir , 'Utilities' , 'bootstrap' )
48
48
@@ -85,7 +85,7 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]):
85
85
]
86
86
87
87
# Pass Cross compile host info
88
- if self .has_cross_compile_hosts ():
88
+ if not ignore_cross_compile_argument and self .has_cross_compile_hosts ():
89
89
if self .is_darwin_host (host_target ):
90
90
helper_cmd += ['--cross-compile-hosts' ]
91
91
for cross_compile_host in self .args .cross_compile_hosts :
@@ -114,7 +114,7 @@ def should_test(self, host_target):
114
114
return self .args .test_swiftpm
115
115
116
116
def test (self , host_target ):
117
- self .run_bootstrap_script ('test' , host_target )
117
+ self .run_bootstrap_script ('test' , host_target , ignore_cross_compile_argument = True )
118
118
119
119
def should_clean (self , host_target ):
120
120
return self .args .clean_swiftpm
0 commit comments