Skip to content

Commit

Permalink
RUSTC must be set by Cargo for build script
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 31, 2023
1 parent 38c79ef commit ee41470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
}

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

0 comments on commit ee41470

Please sign in to comment.