File tree 1 file changed +8
-23
lines changed
crates/intrinsic-test/src/common
1 file changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ use super::types::FailureReason;
2
2
use rayon:: prelude:: * ;
3
3
use std:: process:: Command ;
4
4
5
- static SPECIAL_TARGETS : [ & str ; 1 ] = [ "aarch64_be-unknown-linux-gnu" ] ;
6
-
7
5
pub fn compare_outputs (
8
6
intrinsic_name_list : & Vec < String > ,
9
7
toolchain : & str ,
@@ -18,27 +16,14 @@ pub fn compare_outputs(
18
16
. arg ( format ! ( "{runner} ./c_programs/{intrinsic_name}" ) )
19
17
. output ( ) ;
20
18
21
- let rust = if SPECIAL_TARGETS
22
- . into_iter ( )
23
- . find ( |& special_target| special_target == target)
24
- . is_some ( )
25
- {
26
- Command :: new ( "sh" )
27
- . arg ( "-c" )
28
- . arg ( format ! (
29
- "{runner} ./rust_programs/target/{target}/release/{intrinsic_name}" ,
30
- ) )
31
- . output ( )
32
- } else {
33
- Command :: new ( "sh" )
34
- . current_dir ( "rust_programs" )
35
- . arg ( "-c" )
36
- . arg ( format ! (
37
- "cargo {toolchain} run --target {target} --bin {intrinsic_name} --release" ,
38
- ) )
39
- . env ( "RUSTFLAGS" , "-Cdebuginfo=0" )
40
- . output ( )
41
- } ;
19
+ let rust = Command :: new ( "sh" )
20
+ . current_dir ( "rust_programs" )
21
+ . arg ( "-c" )
22
+ . arg ( format ! (
23
+ "cargo {toolchain} run --target {target} --bin {intrinsic_name} --release" ,
24
+ ) )
25
+ . env ( "RUSTFLAGS" , "-Cdebuginfo=0" )
26
+ . output ( ) ;
42
27
43
28
let ( c, rust) = match ( c, rust) {
44
29
( Ok ( c) , Ok ( rust) ) => ( c, rust) ,
You can’t perform that action at this time.
0 commit comments