Specify cargo:rerun-if-changed=build.rs
to avoid re-building
This commit is contained in:
parent
5114daa8ff
commit
45e1681d90
3
build.rs
3
build.rs
@ -3,6 +3,9 @@ use std::process::Command;
|
|||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// Avoid unnecessary re-building.
|
||||||
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
|
|
||||||
let (rustc_minor_ver, is_nightly) =
|
let (rustc_minor_ver, is_nightly) =
|
||||||
rustc_minor_nightly().expect("Failed to get rustc version");
|
rustc_minor_nightly().expect("Failed to get rustc version");
|
||||||
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
|
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
|
||||||
|
Loading…
Reference in New Issue
Block a user