Skip to content

fix: build-std on 32 bit arm with 64 bit time#157609

Draft
guoxe wants to merge 1 commit into
rust-lang:mainfrom
guoxe:fix_build_std_arm32_gnu_time_bits64
Draft

fix: build-std on 32 bit arm with 64 bit time#157609
guoxe wants to merge 1 commit into
rust-lang:mainfrom
guoxe:fix_build_std_arm32_gnu_time_bits64

Conversation

@guoxe

@guoxe guoxe commented Jun 8, 2026

Copy link
Copy Markdown

The libc crate has support for building with 64 bit time on 32 bit
platforms using the RUST_LIBC_UNSTABLE_GNU_TIME_BITS environment
variable.

Convert the tv_usec field to i64 via into in this case since
suseconds_t is still defined as an i32 when this environment variable
is set.

The libc crate has support for building with 64 bit time on 32 bit
platforms using the `RUST_LIBC_UNSTABLE_GNU_TIME_BITS` environment
variable.

Convert the tv_usec field to i64 via `into` in this case since
`suseconds_t` is still defined as an i32 when this environment variable
is set.
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants