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