diff options
author | Yuki Okushi <jtitor@2k36.org> | 2021-04-05 03:23:02 +0900 |
---|---|---|
committer | Yuki Okushi <jtitor@2k36.org> | 2021-04-05 03:23:02 +0900 |
commit | 45e1681d903224c199294e3cd740cdf3c84b3856 (patch) | |
tree | 61b34c9fe1174bf8d4d3c901b295ad1ec5be125d /build.rs | |
parent | 5114daa8ff575ca973d2be6ac1199559e293b1a1 (diff) | |
download | rust-libc-45e1681d903224c199294e3cd740cdf3c84b3856.tar.gz |
Specify `cargo:rerun-if-changed=build.rs` to avoid re-building
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,9 @@ use std::process::Command; use std::str; fn main() { + // Avoid unnecessary re-building. + println!("cargo:rerun-if-changed=build.rs"); + let (rustc_minor_ver, is_nightly) = rustc_minor_nightly().expect("Failed to get rustc version"); let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok(); |