File tree Expand file tree Collapse file tree 1 file changed +8
-23
lines changed
crates/intrinsic-test/src/common Expand file tree Collapse file tree 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;
22use rayon:: prelude:: * ;
33use std:: process:: Command ;
44
5- static SPECIAL_TARGETS : [ & str ; 1 ] = [ "aarch64_be-unknown-linux-gnu" ] ;
6-
75pub fn compare_outputs (
86 intrinsic_name_list : & Vec < String > ,
97 toolchain : & str ,
@@ -18,27 +16,14 @@ pub fn compare_outputs(
1816 . arg ( format ! ( "{runner} ./c_programs/{intrinsic_name}" ) )
1917 . output ( ) ;
2018
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 ( ) ;
4227
4328 let ( c, rust) = match ( c, rust) {
4429 ( Ok ( c) , Ok ( rust) ) => ( c, rust) ,
You can’t perform that action at this time.
0 commit comments