File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
crates/intrinsic-test/src/common Expand file tree Collapse file tree 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;
22use rayon:: prelude:: * ;
33use std:: process:: Command ;
44
5+ static SPECIAL_TARGETS : [ & str ; 1 ] = [ "aarch64_be-unknown-linux-gnu" ] ;
6+
57pub fn compare_outputs (
68 intrinsic_name_list : & Vec < String > ,
79 toolchain : & str ,
@@ -16,21 +18,25 @@ pub fn compare_outputs(
1618 . arg ( format ! ( "{runner} ./c_programs/{intrinsic_name}" ) )
1719 . output ( ) ;
1820
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+ {
2026 Command :: new ( "sh" )
21- . current_dir ( "rust_programs" )
2227 . arg ( "-c" )
2328 . arg ( format ! (
24- "cargo {toolchain} run -- target {target} --bin {intrinsic_name} --release " ,
29+ "{runner} ./rust_programs/ target/ {target}/release/ {intrinsic_name}" ,
2530 ) )
26- . env ( "RUSTFLAGS" , "-Cdebuginfo=0" )
2731 . output ( )
2832 } else {
2933 Command :: new ( "sh" )
34+ . current_dir ( "rust_programs" )
3035 . arg ( "-c" )
3136 . arg ( format ! (
32- "{runner} ./rust_programs/ target/ {target}/release/ {intrinsic_name}" ,
37+ "cargo {toolchain} run -- target {target} --bin {intrinsic_name} --release " ,
3338 ) )
39+ . env ( "RUSTFLAGS" , "-Cdebuginfo=0" )
3440 . output ( )
3541 } ;
3642
You can’t perform that action at this time.
0 commit comments