Skip to content

Commit c5b7465

Browse files
snoggetgross35
authored andcommitted
Rerun build if RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 changes
Collect the linux_time_bits64 in one place. (backport <#4242>) (cherry picked from commit 9a861ed)
1 parent 72e5854 commit c5b7465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ fn main() {
4545
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
4646
let libc_ci = env::var("LIBC_CI").is_ok();
4747
let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok() || rustc_minor_ver >= 80;
48-
let linux_time_bits64 = env::var("RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64").is_ok();
4948

5049
// The ABI of libc used by std is backward compatible with FreeBSD 12.
5150
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
@@ -82,6 +81,8 @@ fn main() {
8281
_ => (),
8382
}
8483

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

0 commit comments

Comments
 (0)