Skip to content

Commit d5d3e3b

Browse files
authored
Merge pull request rust-lang#333 from solson/rust_ci
Use correct rustc in rust's CI
2 parents 8307d27 + ce3576f commit d5d3e3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/compiletest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ fn get_sysroot() -> PathBuf {
160160
}
161161

162162
fn get_host() -> String {
163-
let host = std::process::Command::new("rustc")
163+
let rustc = rustc_test_suite().unwrap_or(PathBuf::from("rustc"));
164+
println!("using rustc at {}", rustc.display());
165+
let host = std::process::Command::new(rustc)
164166
.arg("-vV")
165167
.output()
166168
.expect("rustc not found for -vV")

0 commit comments

Comments
 (0)