summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-04-05 03:23:02 +0900
committerYuki Okushi <jtitor@2k36.org>2021-04-05 03:23:02 +0900
commit45e1681d903224c199294e3cd740cdf3c84b3856 (patch)
tree61b34c9fe1174bf8d4d3c901b295ad1ec5be125d /build.rs
parent5114daa8ff575ca973d2be6ac1199559e293b1a1 (diff)
downloadrust-libc-45e1681d903224c199294e3cd740cdf3c84b3856.tar.gz
Specify `cargo:rerun-if-changed=build.rs` to avoid re-building
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index ef43dfb788..50b58ef3ce 100644
--- a/build.rs
+++ b/build.rs
@@ -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();