Skip to content
Snippets Groups Projects
Commit 744493db authored by Peter Trommler's avatar Peter Trommler :drum: Committed by thoughtpolice
Browse files

Fix __thread detection (#8722)


Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>

(cherry picked from commit 298a25bd)
parent be6d9df2
No related branches found
No related tags found
No related merge requests found
...@@ -867,11 +867,11 @@ AC_COMPILE_IFELSE( ...@@ -867,11 +867,11 @@ AC_COMPILE_IFELSE(
[ AC_LANG_SOURCE([[__thread int tester = 0;]]) ], [ AC_LANG_SOURCE([[__thread int tester = 0;]]) ],
[ [
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE([CC_SUPPORTS_TLS],[0],[Define to 1 if __thread is supported]) AC_DEFINE([CC_SUPPORTS_TLS],[1],[Define to 1 if __thread is supported])
], ],
[ [
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
AC_DEFINE([CC_SUPPORTS_TLS],[1],[Define to 1 if __thread is supported]) AC_DEFINE([CC_SUPPORTS_TLS],[0],[Define to 1 if __thread is supported])
]) ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment