Skip to content

Commit 9a861ed

Browse files
snoggetgross35
authored andcommitted
Rerun build if RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 changes
Collect the linux_time_bits64 in one place.
1 parent 9ea78dc commit 9a861ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ fn main() {
4444
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
4545
let libc_ci = env::var("LIBC_CI").is_ok();
4646
let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok() || rustc_minor_ver >= 80;
47-
let linux_time_bits64 = env::var("RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64").is_ok();
4847

4948
// The ABI of libc used by std is backward compatible with FreeBSD 12.
5049
// The ABI of libc from crates.io is backward compatible with FreeBSD 12.
@@ -81,6 +80,8 @@ fn main() {
8180
Some(_) | None => (),
8281
}
8382

83+
let linux_time_bits64 = env::var("RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64").is_ok();
84+
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64");
8485
if linux_time_bits64 {
8586
set_cfg("linux_time_bits64");
8687
}

0 commit comments

Comments
 (0)