@@ -119,7 +119,7 @@ pub(crate) static LIBCORE_TESTS: CargoProject =
119
119
120
120
const EXTENDED_SYSROOT_SUITE : & [ TestCase ] = & [
121
121
TestCase :: custom ( "test.rust-random/rand" , & |runner| {
122
- spawn_and_wait ( RAND . clean ( & runner. target_compiler . cargo , & runner . dirs ) ) ;
122
+ RAND . clean ( & runner. dirs ) ;
123
123
124
124
if runner. is_native {
125
125
eprintln ! ( "[TEST] rust-random/rand" ) ;
@@ -134,11 +134,11 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
134
134
}
135
135
} ) ,
136
136
TestCase :: custom ( "test.simple-raytracer" , & |runner| {
137
- spawn_and_wait ( SIMPLE_RAYTRACER . clean ( & runner. host_compiler . cargo , & runner . dirs ) ) ;
137
+ SIMPLE_RAYTRACER . clean ( & runner. dirs ) ;
138
138
spawn_and_wait ( SIMPLE_RAYTRACER . build ( & runner. target_compiler , & runner. dirs ) ) ;
139
139
} ) ,
140
140
TestCase :: custom ( "test.libcore" , & |runner| {
141
- spawn_and_wait ( LIBCORE_TESTS . clean ( & runner. host_compiler . cargo , & runner . dirs ) ) ;
141
+ LIBCORE_TESTS . clean ( & runner. dirs ) ;
142
142
143
143
if runner. is_native {
144
144
spawn_and_wait ( LIBCORE_TESTS . test ( & runner. target_compiler , & runner. dirs ) ) ;
@@ -150,7 +150,7 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
150
150
}
151
151
} ) ,
152
152
TestCase :: custom ( "test.regex-shootout-regex-dna" , & |runner| {
153
- spawn_and_wait ( REGEX . clean ( & runner. target_compiler . cargo , & runner . dirs ) ) ;
153
+ REGEX . clean ( & runner. dirs ) ;
154
154
155
155
// newer aho_corasick versions throw a deprecation warning
156
156
let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. target_compiler. rustflags) ;
@@ -194,7 +194,7 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
194
194
}
195
195
} ) ,
196
196
TestCase :: custom ( "test.regex" , & |runner| {
197
- spawn_and_wait ( REGEX . clean ( & runner. host_compiler . cargo , & runner . dirs ) ) ;
197
+ REGEX . clean ( & runner. dirs ) ;
198
198
199
199
// newer aho_corasick versions throw a deprecation warning
200
200
let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. target_compiler. rustflags) ;
@@ -221,7 +221,7 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
221
221
}
222
222
} ) ,
223
223
TestCase :: custom ( "test.portable-simd" , & |runner| {
224
- spawn_and_wait ( PORTABLE_SIMD . clean ( & runner. host_compiler . cargo , & runner . dirs ) ) ;
224
+ PORTABLE_SIMD . clean ( & runner. dirs ) ;
225
225
226
226
let mut build_cmd = PORTABLE_SIMD . build ( & runner. target_compiler , & runner. dirs ) ;
227
227
build_cmd. arg ( "--all-targets" ) ;
@@ -293,7 +293,6 @@ struct TestRunner {
293
293
is_native : bool ,
294
294
jit_supported : bool ,
295
295
dirs : Dirs ,
296
- host_compiler : Compiler ,
297
296
target_compiler : Compiler ,
298
297
}
299
298
@@ -303,8 +302,6 @@ impl TestRunner {
303
302
let jit_supported =
304
303
is_native && host_triple. contains ( "x86_64" ) && !host_triple. contains ( "windows" ) ;
305
304
306
- let host_compiler = Compiler :: clif_with_triple ( & dirs, host_triple) ;
307
-
308
305
let mut target_compiler = Compiler :: clif_with_triple ( & dirs, target_triple) ;
309
306
if !is_native {
310
307
target_compiler. set_cross_linker_and_runner ( ) ;
@@ -323,7 +320,7 @@ impl TestRunner {
323
320
target_compiler. rustflags . push_str ( " -Clink-arg=-undefined -Clink-arg=dynamic_lookup" ) ;
324
321
}
325
322
326
- Self { is_native, jit_supported, dirs, host_compiler , target_compiler }
323
+ Self { is_native, jit_supported, dirs, target_compiler }
327
324
}
328
325
329
326
pub fn run_testsuite ( & self , tests : & [ TestCase ] ) {
0 commit comments