Skip to content

Commit

Permalink
Don't build dependencies on no-std for now
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 18, 2022
1 parent 0216e8b commit e5736f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
// Pass on all arguments as filters.
let path_filter = std::env::args().skip(1);

let use_std = env::var_os("MIRI_NO_STD").is_none();

let config = Config {
args: flags,
target,
Expand All @@ -61,7 +63,8 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
path_filter: path_filter.collect(),
program: miri_path(),
output_conflict_handling,
manifest_path: Some(std::env::current_dir()?.join("test_dependencies").join("Cargo.toml")),
manifest_path: use_std
.then(|| std::env::current_dir().unwrap().join("test_dependencies").join("Cargo.toml")),
dependency_builder: Some(DependencyBuilder {
program: PathBuf::from("bash"),
args: vec![
Expand Down

0 comments on commit e5736f9

Please sign in to comment.