aux tests only run if the host is set

This commit is contained in:
Oliver Schneider 2017-01-12 08:45:09 +01:00
parent ae7d69a5bd
commit ccfcc12a58
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

@ -32,6 +32,7 @@ fn miri_pass(path: &str, target: &str, host: &str) {
config.mode = "mir-opt".parse().expect("Invalid mode");
config.src_base = PathBuf::from(path);
config.target = target.to_owned();
config.host = host.to_owned();
config.rustc_path = PathBuf::from("target/debug/miri");
// don't actually execute the final binary, it might be for other targets and we only care
// about running miri, not the binary.