[fmt,folly] backport '/utf-8 only if the compiler is MSVC at build time'#40944
[fmt,folly] backport '/utf-8 only if the compiler is MSVC at build time'#40944JavierMatosD merged 6 commits intomicrosoft:masterfrom
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. |
|
@WangWeiLin-MV I prefer to keep the setup simple. The next version of fmt will remove this patch anyway. |
WangWeiLin-MV
left a comment
There was a problem hiding this comment.
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
|
Still getting this error |
Backporting fmtlib/fmt#4159
Fixes #40912
./vcpkg x-add-version --alland committing the result.