-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Swift: update fmt
#20872
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
base: main
Are you sure you want to change the base?
Swift: update fmt
#20872
Conversation
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.
Pull Request Overview
This PR updates the fmt library from version 10.0.0 to 12.1.0 and simplifies the formatters configuration by leveraging the standard library formatters now available in fmt/std.h without requiring RTTI.
Key changes:
- Updated fmt dependency from 10.0.0 to 12.1.0
- Replaced custom formatters for
std::filesystem::pathandstd::error_codewith the standardfmt/std.hheader - Added
FMT_USE_RTTI 0macro definition to disable RTTI requirements for fmt's standard library support
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| MODULE.bazel | Updates the fmt dependency version from 10.0.0 to 12.1.0 |
| swift/logging/Formatters.h | Removes custom formatter implementations and switches to fmt/std.h with RTTI disabled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9a5b2ee to
03aab97
Compare
03aab97 to
6b17edb
Compare
6b17edb to
31cf166
Compare
31cf166 to
83b3711
Compare
The new version needs
FMT_UNICODEto be disabled on windows for us though. I've done that in a registry override.The change to
fix.pythere is to support theoverlaydirectory in the module registry, which I think is something new (and is used by thefmtmodule entry).