Use correct rustc in rust's CI

This commit is contained in:
Oliver Schneider 2017-09-11 11:01:26 +02:00
parent 8307d27522
commit ce3576f7d8
No known key found for this signature in database
GPG Key ID: 1D5CB4FC597C3004

View File

@ -160,7 +160,9 @@ fn get_sysroot() -> PathBuf {
}
fn get_host() -> String {
let host = std::process::Command::new("rustc")
let rustc = rustc_test_suite().unwrap_or(PathBuf::from("rustc"));
println!("using rustc at {}", rustc.display());
let host = std::process::Command::new(rustc)
.arg("-vV")
.output()
.expect("rustc not found for -vV")