Skip to content

Commit edd7308

Browse files
fix(build): rustc check works now
1 parent 6310371 commit edd7308

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use emoji;
44
use error::Error;
55
use progressbar::Step;
6-
use std::env;
76
use std::path::Path;
87
use std::process::Command;
98
use std::str;
@@ -44,8 +43,7 @@ fn rustc_minor_version() -> Option<u32> {
4443
}
4544
};
4645
}
47-
let rustc = otry!(env::var_os("RUSTC").unwrap_or(|| "rustc".into())); // updated because we are not in a build script
48-
let output = otry!(Command::new(rustc).arg("--version").output().ok());
46+
let output = otry!(Command::new("rustc").arg("--version").output().ok());
4947
let version = otry!(str::from_utf8(&output.stdout).ok());
5048
let mut pieces = version.split('.');
5149
if pieces.next() != Some("rustc 1") {

0 commit comments

Comments
 (0)