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
Build system: default to fmt shared library when available #8198
Conversation
Oops, just noticed there's a new version of fmtlib (6.0.0)...
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.
Since fmtlib 6.0.0 -- which contains backward-compatibility breaking changes -- has been released, and distros will be moving to 6.0.0 in the future, could you bump the requirement to 6.0.0 and update the copy in Externals please? Otherwise Dolphin will stop building at some point with this change...
|
A lot of distros already provide |
|
I updated fmt from External, everything seems compiles fine, no breaking changes detected yet ! |
|
Hmm, it's weird that everything still builds fine because fmt/time.h was removed in 6.0, and Core (IIRC) includes it. |
|
The functionality is still there, but I can't find where we use it (nor in which PR I mentioned this before). |
|
Looks like the PR is based on an old-ish commit. Please rebase and fix the build issues that will most likely appear after doing so. (I think the only change you have to make is replace fmt/time.h with fmt/chrono.h.) |
|
Looks like fmt 6.0.0 introduces a lot of new warnings (fmtlib/fmt#1278). Maybe we should consider disabling warnings for fmt (or even Externals in general)? |
|
FWIW fmt upstream is now at |
For now using fmt 6.1.2 from system fails to compile: Locally I just add a '+ 0' to all those complaining bitfields, it works, but I'm sure it is not the proper way to cast. What would be the good way to cast ? |
|
Apparently this is a known issue with 6.0+. The recommended workaround is to use the unary plus operator: |
Pushed fmt 6.1.2, added unary plus were they were missing. |
|
@mazes-80 I don't see the new commits? |
|
Fwiw this builds here. |
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.
Apologies for the long delay... I've rebased your branch and removed some (now) unnecessary commits (considering #8602 was merged meanwhile). Thanks for your contribution!
Follow the update pntroduced in dolphin-emu/dolphin#8198 Reported-by: Samuel BAUER Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Detect system libfmt, with minimal version 5.3.
I don't know if minimal version is required, but as it is the one found in externals ...