maintaining special list of targets which need different execution command
This commit is contained in:
parent
e15d6fae92
commit
8e269afcfe
1 changed files with 14 additions and 8 deletions
|
|
@ -2,6 +2,8 @@ use super::types::FailureReason;
|
|||
use rayon::prelude::*;
|
||||
use std::process::Command;
|
||||
|
||||
static SPECIAL_TARGETS: [&str; 1] = ["aarch64_be-unknown-linux-gnu"];
|
||||
|
||||
pub fn compare_outputs(
|
||||
intrinsic_name_list: &Vec<String>,
|
||||
toolchain: &str,
|
||||
|
|
@ -16,7 +18,18 @@ pub fn compare_outputs(
|
|||
.arg(format!("{runner} ./c_programs/{intrinsic_name}"))
|
||||
.output();
|
||||
|
||||
let rust = if target != "aarch64_be-unknown-linux-gnu" {
|
||||
let rust = if SPECIAL_TARGETS
|
||||
.into_iter()
|
||||
.find(|&special_target| special_target == target)
|
||||
.is_some()
|
||||
{
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg(format!(
|
||||
"{runner} ./rust_programs/target/{target}/release/{intrinsic_name}",
|
||||
))
|
||||
.output()
|
||||
} else {
|
||||
Command::new("sh")
|
||||
.current_dir("rust_programs")
|
||||
.arg("-c")
|
||||
|
|
@ -25,13 +38,6 @@ pub fn compare_outputs(
|
|||
))
|
||||
.env("RUSTFLAGS", "-Cdebuginfo=0")
|
||||
.output()
|
||||
} else {
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg(format!(
|
||||
"{runner} ./rust_programs/target/{target}/release/{intrinsic_name}",
|
||||
))
|
||||
.output()
|
||||
};
|
||||
|
||||
let (c, rust) = match (c, rust) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue