From: <sv...@op...> - 2024-06-08 06:17:56
|
Author: manx Date: Sat Jun 8 08:17:43 2024 New Revision: 20951 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20951 Log: [Imp] mpt/base/detect_quirks.hpp: Detect libstdc++ and libc++ missing constexpr vector support. Modified: trunk/OpenMPT/src/mpt/base/detect_quirks.hpp Modified: trunk/OpenMPT/src/mpt/base/detect_quirks.hpp ============================================================================== --- trunk/OpenMPT/src/mpt/base/detect_quirks.hpp Sat Jun 8 02:16:59 2024 (r20950) +++ trunk/OpenMPT/src/mpt/base/detect_quirks.hpp Sat Jun 8 08:17:43 2024 (r20951) @@ -258,6 +258,15 @@ #if MPT_CXX_AT_LEAST(20) +#if MPT_LIBCXX_GNU_BEFORE(12) || MPT_LIBCXX_LLVM_BEFORE(15) +#define MPT_LIBCXX_QUIRK_NO_CONSTEXPR_VECTOR +#define MPT_LIBCXX_QUIRK_NO_CONSTEXPR_STRING +#endif +#endif + + + +#if MPT_CXX_AT_LEAST(20) // Clang 14 is incompatible with libstdc++ 13 in C++20 mode #if MPT_CLANG_BEFORE(15, 0, 0) && MPT_LIBCXX_GNU_AT_LEAST(13) #define MPT_LIBCXX_QUIRK_NO_CHRONO |