Skip to content

Commit 5bba433

Browse files
hebastofanquake
authored andcommitted
build: Enable thread_local for MinGW-w64 builds
The assumption in the commit 188ca75 about the broken `thread_local` implementation in GCC was misguided because the initial failure was not due to GCC, but a bug in the Wine runtime, as evidenced, for example, here: - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917307 - https://bugs.freedesktop.org/show_bug.cgi?id=108662 Consequently, it is safe to re-enable `thread_local` support for MinGW-w64 builds.
1 parent a786fd2 commit 5bba433

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

configure.ac

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,12 +1043,6 @@ if test "$use_thread_local" = "yes" || test "$use_thread_local" = "auto"; then
10431043
])],
10441044
[
10451045
case $host in
1046-
*mingw*)
1047-
dnl mingw32's implementation of thread_local has also been shown to behave
1048-
dnl erroneously under concurrent usage; see:
1049-
dnl https://gist.github.com/jamesob/fe9a872051a88b2025b1aa37bfa98605
1050-
AC_MSG_RESULT([no])
1051-
;;
10521046
*)
10531047
AC_DEFINE([HAVE_THREAD_LOCAL], [1], [Define if thread_local is supported.])
10541048
AC_MSG_RESULT([yes])

0 commit comments

Comments
 (0)