Skip to content
Myr

RUSTC must be set by Cargo for build script

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 38c79ef · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:build.rs+1 added-1 removed
144 unmodified lines
145 }146}147148fn rustc_minor_version() -> Option<u32> {149 let rustc = env::var_os("RUSTC")?;149 let rustc = cargo_env_var("RUSTC");150 let output = Command::new(rustc).arg("--version").output().ok()?;151 let version = str::from_utf8(&output.stdout).ok()?;152 let mut pieces = version.split('.');153 if pieces.next() != Some("rustc 1") {
14 unmodified lines