-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Remove gmtime* #29081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Remove gmtime* #29081
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Finally :) Concept ACK. |
It would have been too easy if it had just worked in the real world :p Edit: looks like this is first available with libstdc++ 11.1: gcc-mirror/gcc@03d5044 . I'm assuming our mingw builder is using something older? |
Jup, a bump to g++-11 should be fine, but currently not possible because the guix build is still on g++-10 🫠 |
Guix builds (on x86_64)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK - can we also drop the Boost date_time usage from ParseISO8601DateTime
in favour of the std lib?
fa53215
to
e712364
Compare
Probably no. |
Damn. I just meant any possibility to get rid of Boost. |
At least this one is header-only in a single translation unit, so should be fine to stay around for another 3 years |
faedf56
to
d53a1f8
Compare
8905a5d
to
0950849
Compare
Want to rebase now that we've got 11. |
This reverts commit 3c2e16b.
0950849
to
fa9f36b
Compare
Concept ACK. |
cc @theuni you might want to circle back here now that this is unblocked. |
utACK fa9f36b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fa9f36b - more std lib & even less stuff to port.
Post-merge utACK fa9f36b |
Backport changes from bitcoin#29081.
6d4584b fixup! cmake: Check system symbols (Hennadii Stepanov) Pull request description: Backport changes from bitcoin#29081. ACKs for top commit: theuni: utACK 6d4584b Tree-SHA512: 079f14184db01c2a90acca435330d1b19b95dc21b9e37d5b4ba3c628d2f205c6590f53e6768c32ca633323a8ab7ed10e87a3f87fdb7b7a27378b4c3f5fa0519b
fa9f36b build: Remove HAVE_GMTIME_R (MarcoFalke) fa72dcb refactor: FormatISO8601* without gmtime* (MarcoFalke) fa2c486 Revert "time: add runtime sanity check" (MarcoFalke) Pull request description: Now that the `ChronoSanityCheck` has passed for everyone with C++17 and is guaranteed by C++20 to always pass, remove it. Also, remove `gmtime_r` and `gmtime_s` and replace them with `year_month_day`+`hh_mm_ss` from C++20. ACKs for top commit: sipa: utACK fa9f36b fanquake: ACK fa9f36b - more std lib & even less stuff to port. Tree-SHA512: a9e7e805b757b7dade0bcc3f95273a7dc4f68622630d74838339789dd203ad7542d36b2e090a93b2bc5a7ecc383207dd7ec82c68147108bdac7ce44f088c8c9a
fa9f36b build: Remove HAVE_GMTIME_R (MarcoFalke) fa72dcb refactor: FormatISO8601* without gmtime* (MarcoFalke) fa2c486 Revert "time: add runtime sanity check" (MarcoFalke) Pull request description: Now that the `ChronoSanityCheck` has passed for everyone with C++17 and is guaranteed by C++20 to always pass, remove it. Also, remove `gmtime_r` and `gmtime_s` and replace them with `year_month_day`+`hh_mm_ss` from C++20. ACKs for top commit: sipa: utACK fa9f36b fanquake: ACK fa9f36b - more std lib & even less stuff to port. Tree-SHA512: a9e7e805b757b7dade0bcc3f95273a7dc4f68622630d74838339789dd203ad7542d36b2e090a93b2bc5a7ecc383207dd7ec82c68147108bdac7ce44f088c8c9a
fa9f36b build: Remove HAVE_GMTIME_R (MarcoFalke) fa72dcb refactor: FormatISO8601* without gmtime* (MarcoFalke) fa2c486 Revert "time: add runtime sanity check" (MarcoFalke) Pull request description: Now that the `ChronoSanityCheck` has passed for everyone with C++17 and is guaranteed by C++20 to always pass, remove it. Also, remove `gmtime_r` and `gmtime_s` and replace them with `year_month_day`+`hh_mm_ss` from C++20. ACKs for top commit: sipa: utACK fa9f36b fanquake: ACK fa9f36b - more std lib & even less stuff to port. Tree-SHA512: a9e7e805b757b7dade0bcc3f95273a7dc4f68622630d74838339789dd203ad7542d36b2e090a93b2bc5a7ecc383207dd7ec82c68147108bdac7ce44f088c8c9a
Now that the
ChronoSanityCheck
has passed for everyone with C++17 and is guaranteed by C++20 to always pass, remove it.Also, remove
gmtime_r
andgmtime_s
and replace them withyear_month_day
+hh_mm_ss
from C++20.