-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
msvc : silence codecvt c++17 deprecation warnings #8395
Conversation
I thought that setting the standard to C++11 would make the compiler ignore such warnings: llama.cpp/common/CMakeLists.txt Line 87 in a7abb78
Is it not the case? |
Yes, but for there may be builds which set the standard to 17 or higher from above (for ABI compatibility for example) PS pr for C++20 compatibility incoming 😄 |
You only need the change in |
How are you changing the C++ standard of the common library? Is that possible without changing its |
If you set |
That is when you use |
Setting the standard from above affects all libs. Plus if you use static linking, it doesn't matter whether you export symbols explicity to risk ODR violations because of abi compatibility |
codecvt_utf8
is deprecated in C++17 (and removed in C++26). This silences the warnings when compiling with MSVC