Skip to content

Commit e5736f9

Browse files
committed
Don't build dependencies on no-std for now
1 parent 0216e8b commit e5736f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/compiletest.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
5151
// Pass on all arguments as filters.
5252
let path_filter = std::env::args().skip(1);
5353

54+
let use_std = env::var_os("MIRI_NO_STD").is_none();
55+
5456
let config = Config {
5557
args: flags,
5658
target,
@@ -61,7 +63,8 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
6163
path_filter: path_filter.collect(),
6264
program: miri_path(),
6365
output_conflict_handling,
64-
manifest_path: Some(std::env::current_dir()?.join("test_dependencies").join("Cargo.toml")),
66+
manifest_path: use_std
67+
.then(|| std::env::current_dir().unwrap().join("test_dependencies").join("Cargo.toml")),
6568
dependency_builder: Some(DependencyBuilder {
6669
program: PathBuf::from("bash"),
6770
args: vec![

0 commit comments

Comments
 (0)