Skip to content

Commit a97bea5

Browse files
committed
build: Remove RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64
Currently this isn't used for any testing, and there isn't really a time when it would be useful to set this: it is always set by the libc in practice. Thus, remove it.
1 parent 72fe537 commit a97bea5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

build.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ fn main() {
106106
// FIXME(musl): enable time64 api as well
107107
set_cfg("musl_v1_2_3");
108108
}
109-
let linux_time_bits64 = env_flag("RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64");
110-
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64");
111-
if linux_time_bits64 {
112-
set_cfg("linux_time_bits64");
113-
}
114109
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS");
115110
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_GNU_TIME_BITS");
116111
if target_env == "gnu"

ci/verify-build.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,6 @@ def test_target(cfg: Cfg, target: Target) -> TargetResult:
390390
run(cmd, env=env)
391391
run([*cmd, "--features=extra_traits"], env=env)
392392

393-
# Check with different env for 64-bit time_t
394-
if target_os == "linux" and target_bits == "32":
395-
# Equivalent of __USE_TIME_BITS64
396-
run(cmd, env=env | {"RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64": "1"})
397-
398393
if "gnu" in target_env and target_bits == "32":
399394
# Equivalent of _FILE_OFFSET_BITS=64
400395
run(cmd, env=env | {"RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS": "64"})

0 commit comments

Comments
 (0)