Repository navigation
crate: expose cfg for general 64-bit time_t functionality - #5411
Conversation
|
Reminder, once the PR becomes ready for a review, use |
98e48b9 to
1ab4287
Compare
This comment has been minimized.
This comment has been minimized.
1ab4287 to
01f4796
Compare
4c3b4f1 to
1b1d2bb
Compare
|
I think it's done now. While checking through the CI workflow file, I I was wondering what's our stance on that change for stable releases, @rustbot ready Footnotes |
1b1d2bb to
a89083f
Compare
This comment has been minimized.
This comment has been minimized.
a89083f to
36137bc
Compare
This comment has been minimized.
This comment has been minimized.
36137bc to
3198d46
Compare
This comment has been minimized.
This comment has been minimized.
Oh, I did mean to update I'm not sure I follow the rest, why do you consider |
This comment has been minimized.
This comment has been minimized.
|
Could you rebase this once #5508 lands? |
|
Also please update the commit summary and PR title to mention the name of the config, it doesn't actually show up anywhere except the env form :) |
|
Cherry picked the AIX skip as #5541 to unblock other things |
This comment has been minimized.
This comment has been minimized.
Add `cfg` enabling `time64` functionality across all supported targets. This ensures users have a simple entry point to the crate functionality gated behind one of `linux_time_bits64`, `uclibc_time64` and `gnu_time_bits64`. The new `cfg` goes by the name `libc_unstable_time64`.
Switch as many uses of other target-specific `cfg`s with the `time64` `cfg` introduced in the prior patch.
- Change indentation of two YAML arrays to consistently appear as nested within the key that corresponds with the array. - Change one inconsistent use of single quotes with double quotes for YAML strings.
Replace use of `RUST_LIBC_UNSTABLE_MUSL_V1_2` with `TEST_MUSL_V1_2` in the PowerPC CI runs. The former is deprecated; The latter is used in CI scripts to set the right unstable `cfg` for functionality gated behind musl's v1.2.
eaabb4a to
050b9e5
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Add `cfg` enabling `time64` functionality across all supported targets. This ensures users have a simple entry point to the crate functionality gated behind one of `linux_time_bits64`, `uclibc_time64` and `gnu_time_bits64`. The new `cfg` goes by the name `libc_unstable_time64`. (backport <rust-lang#5411>) (cherry picked from commit 9a1b7f8)
Switch as many uses of other target-specific `cfg`s with the `time64` `cfg` introduced in the prior patch. (backport <rust-lang#5411>) (cherry picked from commit 39f6b9b)
- Change indentation of two YAML arrays to consistently appear as nested within the key that corresponds with the array. - Change one inconsistent use of single quotes with double quotes for YAML strings. (backport <rust-lang#5411>) (cherry picked from commit 76f110d)
Replace use of `RUST_LIBC_UNSTABLE_MUSL_V1_2` with `TEST_MUSL_V1_2` in the PowerPC CI runs. The former is deprecated; The latter is used in CI scripts to set the right unstable `cfg` for functionality gated behind musl's v1.2. (backport <rust-lang#5411>) (cherry picked from commit dde449d)
Add `cfg` enabling `time64` functionality across all supported targets. This ensures users have a simple entry point to the crate functionality gated behind one of `linux_time_bits64`, `uclibc_time64` and `gnu_time_bits64`. The new `cfg` goes by the name `libc_unstable_time64`. (backport <rust-lang#5411>) (cherry picked from commit 9a1b7f8)
Switch as many uses of other target-specific `cfg`s with the `time64` `cfg` introduced in the prior patch. (backport <rust-lang#5411>) (cherry picked from commit 39f6b9b)
- Change indentation of two YAML arrays to consistently appear as nested within the key that corresponds with the array. - Change one inconsistent use of single quotes with double quotes for YAML strings. (backport <rust-lang#5411>) (cherry picked from commit 76f110d)
Replace use of `RUST_LIBC_UNSTABLE_MUSL_V1_2` with `TEST_MUSL_V1_2` in the PowerPC CI runs. The former is deprecated; The latter is used in CI scripts to set the right unstable `cfg` for functionality gated behind musl's v1.2. (backport <rust-lang#5411>) (cherry picked from commit dde449d)
Description
This patch adds support for a new
cfgfor easily toggling support for64-bit
time_tin supported platforms. This really only sets up the anyone of
linux_time_bits64,gnu_time_bits64oruclibc_time64.The name of the
cfgistime64.Note support for the equivalent flag in musl has not been included
because we already have set-up automatic detection and toggling of the
corresponding
cfgunder supported targets 1.Checklist
libc-test/semverhave been updated*LASTor*MAXhave thestandard doc comment
cargo test -p libc-test --target mytarget);especially relevant for platforms that may not be checked in CI
@rustbot label +stable-nominated
Footnotes
https://github.com/rust-lang/libc/blob/1a8e71f33b1d6ea1e072210e7fc994417bbb2e34/build.rs#L181-L190 ↩