]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Use C++20 standard consistently to resolve ODR violations 5592/head
authorPetr Vaněk <arkamar@atlas.cz>
Fri, 29 Aug 2025 08:31:24 +0000 (10:31 +0200)
committerPetr Vaněk <arkamar@atlas.cz>
Fri, 29 Aug 2025 09:09:59 +0000 (11:09 +0200)
commitbf41ad1e54784b7f4cd3f5d774750830a3d7ca94
tree3e43de5d019a57e06b816966cfd77b4e429deadb
parente735d265fe11cc954e0d621555653134ebc906c5
[Fix] Use C++20 standard consistently to resolve ODR violations

This commit resolves an ODR violations when compiling with -flto and
-Werror=odr [1]. The main project used a newer C++20 standard, while the
backward-cpp and simdutf libraries used an older C++11 standard. This
difference caused the linker to fail.

Setting C++20 standard in both libraries resolves the ODR issue.

Link: https://bugs.gentoo.org/962041
contrib/backward-cpp/CMakeLists.txt
contrib/simdutf/cmake/simdutf-flags.cmake