From e9e3129524dbfc7ddc171969c64f16e176c1c3a2 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Fri, 29 Mar 2019 23:54:51 +0300 Subject: [PATCH] Lift thread local ban for 64bit MinGW The problem seems affect only 32bit compilers. --- include/boost/config/compiler/gcc.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index 9ae6072e..4e522a16 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -309,8 +309,8 @@ # define BOOST_FALLTHROUGH __attribute__((fallthrough)) #endif -#ifdef __MINGW32__ -// Currently (June 2017) thread_local is broken on mingw for all current compiler releases, see +#if defined(__MINGW32__) && !defined(__MINGW64__) +// Currently (March 2019) thread_local is broken on mingw for all current 32bit compiler releases, see // https://sourceforge.net/p/mingw-w64/bugs/527/ // Not setting this causes program termination on thread exit. #define BOOST_NO_CXX11_THREAD_LOCAL