]> git.lizzy.rs Git - rust.git/commitdiff
Use correct rustc in rust's CI
authorOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Mon, 11 Sep 2017 09:01:26 +0000 (11:01 +0200)
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Mon, 11 Sep 2017 09:01:26 +0000 (11:01 +0200)
tests/compiletest.rs

index aa27386ca7e16f0c94558e82cd64af23f0621f0b..f9352efbbdebd6bbe4b9967cba01037457b1c304 100644 (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")