Skip to content

Commit 7dcfaaf

Browse files
committed
Update mingw failure with thread_local
1 parent bed1fd5 commit 7dcfaaf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

include/boost/math/tools/config.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,9 @@ namespace boost{ namespace math{
653653
// Some mingw flavours have issues with thread_local and types with non-trivial destructors
654654
// See https://sourceforge.net/p/mingw-w64/bugs/527/
655655
//
656-
#if (defined(__MINGW32__) && (__GNUC__ < 9) && !defined(__clang__))
656+
// When running windows-2022 or 2025 we see this issue again with GCC 12 and 14
657+
//
658+
#if (defined(__MINGW32__) && ((__GNUC__ < 9) || (__GNUC__ >= 12)) && !defined(__clang__))
657659
# define BOOST_MATH_NO_THREAD_LOCAL_WITH_NON_TRIVIAL_TYPES
658660
#endif
659661

0 commit comments

Comments
 (0)