-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[fmt,folly] backport '/utf-8 only if the compiler is MSVC at build time' #40944
Conversation
there's a folly patch when I update fmt to 11.0.2, https://github.com/microsoft/vcpkg/blob/master/ports/folly/fix-fmt11-cmake.patch
I use |
As @miyanyan said,
|
I removed the folly patch. That patch would cause the same fmt error for folly. The current fmt patch is robust under LLVM or MSVC. I only added it for old CMake versions that do not support generator expressions via |
Has the folly change been submitted to folly? |
@BillyONeal Created a PR: |
Please resolve the git conflicts. |
Comment, this would be nice to have resolved properly, fmt is currently breaking out builds. |
Conflicts fixed |
Looking forward to merging it soon. Due to this problem, clang-tidy cannot be used normally on Windows if the fmt library is included. |
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.
Just a suggestion
@WangWeiLin-MV I prefer to keep the setup simple. The next version of fmt will remove this patch anyway. |
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.
The port fmt
and folly
usage tests pass with the following triplets:
- x64-linux
- x64-windows
Tag reviewed for further review. |
Summary: Workaround for #2250. Ideally, the code should support the generator expression, but this workaround fixes the problem for fmt. Also, see fmtlib/fmt#4159 and microsoft/vcpkg#40944 Pull Request resolved: #2293 Reviewed By: Gownta Differential Revision: D62785183 Pulled By: Orvid fbshipit-source-id: d45768f12d28f53122fdedfc396f1d27c7259d19
Summary: Workaround for facebook/folly#2250. Ideally, the code should support the generator expression, but this workaround fixes the problem for fmt. Also, see fmtlib/fmt#4159 and microsoft/vcpkg#40944 X-link: facebook/folly#2293 Reviewed By: Gownta Differential Revision: D62785183 Pulled By: Orvid fbshipit-source-id: d45768f12d28f53122fdedfc396f1d27c7259d19
Backporting fmtlib/fmt#4159
Fixes #40912
./vcpkg x-add-version --all
and committing the result.