Skip to content

Commit ee41470

Browse files
committed
RUSTC must be set by Cargo for build script
1 parent 38c79ef commit ee41470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
146146
}
147147

148148
fn rustc_minor_version() -> Option<u32> {
149-
let rustc = env::var_os("RUSTC")?;
149+
let rustc = cargo_env_var("RUSTC");
150150
let output = Command::new(rustc).arg("--version").output().ok()?;
151151
let version = str::from_utf8(&output.stdout).ok()?;
152152
let mut pieces = version.split('.');

0 commit comments

Comments
 (0)